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/"