fix(ci): run 'go mod tidy' before 'make cross' in release workflow to ensure complete go.sum for the CI Go version (fixes persistent 'missing go.sum entry' errors for direct and transitive deps during cross-compilation)
This commit is contained in:
parent
6537f3ffe1
commit
0a4c457cb4
@ -40,7 +40,9 @@ jobs:
|
|||||||
VERSION=${GITHUB_REF#refs/tags/}
|
VERSION=${GITHUB_REF#refs/tags/}
|
||||||
COMMIT=$(git rev-parse --short HEAD)
|
COMMIT=$(git rev-parse --short HEAD)
|
||||||
DATE=$(date -u +%Y-%m-%dT%H:%M:%SZ)
|
DATE=$(date -u +%Y-%m-%dT%H:%M:%SZ)
|
||||||
|
go mod tidy
|
||||||
make cross VERSION="$VERSION" COMMIT="$COMMIT" DATE="$DATE"
|
make cross VERSION="$VERSION" COMMIT="$COMMIT" DATE="$DATE"
|
||||||
|
# go mod tidy ensures go.sum is complete for this Go version in CI (common fix for "missing go.sum entry" during cross builds)
|
||||||
# make cross (with deps) handles the loop + ldflags
|
# make cross (with deps) handles the loop + ldflags
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user