From f81e3807a35d5249ae2a425e9580bf302979f017 Mon Sep 17 00:00:00 2001 From: Oleks Date: Sun, 15 Mar 2026 14:41:15 +0200 Subject: [PATCH] try: use dict.get instead of ternary to avoid xonsh parser bug --- ci/build.xsh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ci/build.xsh b/ci/build.xsh index f41091e..78d8276 100644 --- a/ci/build.xsh +++ b/ci/build.xsh @@ -13,8 +13,9 @@ print(f"=== Building flake-hub packages for {ARCH} ===") attic = $(nix build --inputs-from . nixpkgs#attic-client --print-out-paths --no-link).strip() + "/bin/attic" @(attic) login ci @(ATTIC_SERVER) $ATTIC_TOKEN -# Common packages (all arches) + cross-only packages -packages = ["hello-world", "geesefs", "xonsh"] + (["attic-client"] if ARCH == "s390x-linux" else []) +# Packages per arch +_cross_only = {"s390x-linux": ["attic-client"]} +packages = ["hello-world", "geesefs", "xonsh"] + _cross_only.get(ARCH, []) print("Building packages...") for pkg in packages: