From d1ece47c3f741af298ab34d6ba1ca3cfb8d9c46c Mon Sep 17 00:00:00 2001 From: Enrico Deusebio Date: Fri, 4 Sep 2026 19:14:14 +0200 Subject: [PATCH] ci(rock): fix goss download for goss >= v0.4.10 asset layout goss v0.4.10 removed the raw goss-linux- release assets and now ships per-arch tarballs (goss__linux_.tar.gz). The pinned 'releases/latest/download/goss-linux-' URL therefore 404s, so curl saved GitHub's 'Not Found' page as the goss binary and kgoss failed in the test pod with 'goss: 1: Not: not found' (exit 127). Pin goss to v0.4.10, download the per-arch tarball and extract the goss binary, mapping dpkg arch (amd64->x86_64, arm64->arm64). Also pin the kgoss download to the same release. --- .github/workflows/rock-pull-request.yaml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/rock-pull-request.yaml b/.github/workflows/rock-pull-request.yaml index 6625e8de..96357bdb 100644 --- a/.github/workflows/rock-pull-request.yaml +++ b/.github/workflows/rock-pull-request.yaml @@ -63,10 +63,18 @@ jobs: sudo concierge prepare -p microk8s --extra-snaps rockcraft,just,kubectl sudo microk8s enable registry # FIXME: install via the goss snap when available - goss_base_url="https://github.com/goss-org/goss/releases/latest/download" - curl -L ${goss_base_url}/goss-linux-$(dpkg --print-architecture) -o /usr/local/bin/goss + # goss >= v0.4.10 ships per-arch tarballs instead of raw + # goss-linux- binaries, so pin a version and extract the tarball. + goss_version="v0.4.10" + goss_base_url="https://github.com/goss-org/goss/releases/download/${goss_version}" + case "$(dpkg --print-architecture)" in + amd64) goss_arch="x86_64" ;; + arm64) goss_arch="arm64" ;; + *) echo "unsupported architecture: $(dpkg --print-architecture)" >&2; exit 1 ;; + esac + curl -sSfL "${goss_base_url}/goss_${goss_version#v}_linux_${goss_arch}.tar.gz" | tar -xz -C /usr/local/bin goss chmod +rx /usr/local/bin/goss - curl -L ${goss_base_url}/kgoss -o /usr/local/bin/kgoss + curl -sSfL "${goss_base_url}/kgoss" -o /usr/local/bin/kgoss chmod +rx /usr/local/bin/kgoss - name: Print disk utilization if: ${{ (runner.debug == '1') }}