From 689c401b4a58fc7ce9b6afd0dc25b88a30ee06cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thor=20Anker=20Kvisg=C3=A5rd=20Lange?= Date: Fri, 25 Apr 2025 13:14:57 +0200 Subject: [PATCH] chore: Running 'go mod download' should catch any inconsistencies in checksums Running 'go mod tidy' should not be necessary as 'go mod download' should check the downloads against the 'go.sum' checksums --- .github/workflows/go-ci.yaml | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/.github/workflows/go-ci.yaml b/.github/workflows/go-ci.yaml index 10f012a..07290b9 100644 --- a/.github/workflows/go-ci.yaml +++ b/.github/workflows/go-ci.yaml @@ -57,16 +57,6 @@ jobs: if: inputs.go-private != '' run: git config --global url."https://${{ secrets.gh_username }}:${{ secrets.gh_token }}@github.com".insteadOf "https://github.com" - - name: Check go mod tidy - run: | - go mod tidy - if git diff --exit-code go.mod go.sum; then - echo "go.mod and go.sum are tidy." - else - echo "::error go.mod or go.sum are not tidy. Please run 'go mod tidy'." - exit 1 - fi - - name: Install Go dependencies run: | go mod download