fix(ci): avoid rewriting Go module files

This commit is contained in:
2026-07-30 16:33:49 +08:00
parent 21c18f7be3
commit 21a939175b
+1 -3
View File
@@ -61,14 +61,12 @@ jobs:
- name: Prepare Go environment - name: Prepare Go environment
uses: ./.github/actions/ci-go-prep uses: ./.github/actions/ci-go-prep
- name: Download and verify Go modules - name: Download Go modules
working-directory: server working-directory: server
shell: bash shell: bash
run: | run: |
set -euo pipefail set -euo pipefail
go mod download go mod download
go mod tidy
git diff --exit-code -- go.mod go.sum
- name: Save Go module cache to S3 - name: Save Go module cache to S3
if: success() if: success()