From 5ac115177aa905ace4d81f1f93880e38a30dc2e4 Mon Sep 17 00:00:00 2001 From: benzjeremy <313434618+benzjeremy@users.noreply.github.com> Date: Thu, 17 Sep 2026 09:40:43 +0200 Subject: [PATCH] fix(ci): handle missing go.sum gracefully --- .github/workflows/ci_arch.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci_arch.yml b/.github/workflows/ci_arch.yml index da1eb97..330951e 100644 --- a/.github/workflows/ci_arch.yml +++ b/.github/workflows/ci_arch.yml @@ -11,6 +11,8 @@ jobs: runs-on: ubuntu-latest container: image: archlinux:latest + env: + CGO_ENABLED: "0" steps: - uses: actions/checkout@v4 - name: Install dependencies @@ -23,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