修复依赖错误

This commit is contained in:
CN-JS-HuiBai
2026-04-16 19:34:56 +08:00
parent f279e70ea5
commit e94db9dfd0

View File

@@ -34,6 +34,26 @@ jobs:
with: with:
go-version: ~1.25.9 go-version: ~1.25.9
- name: Prepare Go cache
shell: bash
run: |
set -euo pipefail
mkdir -p "$PWD/.gitea-cache/go-build" "$PWD/.gitea-cache/gomod"
echo "GOCACHE=$PWD/.gitea-cache/go-build" >> "$GITHUB_ENV"
echo "GOMODCACHE=$PWD/.gitea-cache/gomod" >> "$GITHUB_ENV"
- name: Download Go modules
shell: bash
run: |
set -euo pipefail
go mod download
- name: Verify Go modules
shell: bash
run: |
set -euo pipefail
go mod verify
- name: Resolve build metadata - name: Resolve build metadata
shell: bash shell: bash
run: | run: |