From b0bd48cf88c1ae82fc30a9fff1ae02369bd39b41 Mon Sep 17 00:00:00 2001 From: benzjeremy <313434618+benzjeremy@users.noreply.github.com> Date: Thu, 17 Sep 2026 09:40:39 +0200 Subject: [PATCH] fix(ci): handle missing go.sum gracefully --- .github/workflows/ci_arch.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci_arch.yml b/.github/workflows/ci_arch.yml index 6fb3a9e..330951e 100644 --- a/.github/workflows/ci_arch.yml +++ b/.github/workflows/ci_arch.yml @@ -11,12 +11,13 @@ jobs: runs-on: ubuntu-latest container: image: archlinux:latest + env: + CGO_ENABLED: "0" steps: - uses: actions/checkout@v4 - name: Install dependencies run: | - pacman -Sy --noconfirm git base-devel go \ - gtk3 webkit2gtk + pacman -Sy --noconfirm git base-devel go - name: Set up Go uses: actions/setup-go@v5 with: @@ -24,7 +25,11 @@ jobs: - name: Verify go.mod tidy run: | go mod tidy - git diff --exit-code go.mod go.sum + if [ -f go.sum ]; then + git diff --exit-code go.mod go.sum + else + git diff --exit-code go.mod + fi - name: Build run: go build ./... - name: Test