From 0a4c457cb462db7c123c513c37184bcc6595ce03 Mon Sep 17 00:00:00 2001 From: Greg Gauthier Date: Sat, 6 Jun 2026 07:50:53 +0100 Subject: [PATCH] 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) --- .gitea/workflows/release.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index 602cc6e..7916f14 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -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