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)
Some checks failed
gobuild / build (push) Failing after 6s
Release / Create Release (push) Has been cancelled

This commit is contained in:
Greg Gauthier 2026-06-06 07:50:53 +01:00
parent 6537f3ffe1
commit 0a4c457cb4

View File

@ -40,7 +40,9 @@ jobs:
VERSION=${GITHUB_REF#refs/tags/}
COMMIT=$(git rev-parse --short HEAD)
DATE=$(date -u +%Y-%m-%dT%H:%M:%SZ)
go mod tidy
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