From f3d338ea4f5db9f6eb2ebefd10dc3d32ba6feb7b Mon Sep 17 00:00:00 2001 From: Greg Gauthier Date: Sat, 6 Jun 2026 07:51:23 +0100 Subject: [PATCH] chore(Makefile): add per-platform 'go mod download' inside cross loop for extra robustness in CI cross-compilation environments --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index 6dd1691..f95918d 100644 --- a/Makefile +++ b/Makefile @@ -58,6 +58,7 @@ cross: deps BIN="gostations-$$OS-$$ARCH"; \ if [ "$$OS" = "windows" ]; then BIN="$$BIN.exe"; fi; \ echo "Building $$BIN..."; \ + GOOS=$$OS GOARCH=$$ARCH go mod download; \ GOOS=$$OS GOARCH=$$ARCH go build -trimpath -ldflags "$(LDFLAGS)" -o "build/$$BIN" . ; \ done @echo "✅ Cross builds complete in build/"