修复依赖错误
This commit is contained in:
@@ -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: |
|
||||||
|
|||||||
Reference in New Issue
Block a user