From 4930a8bcb342409f810d6536d7f2d1a021160dc5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jesus=20Nu=C3=B1ez?= Date: Sun, 9 Aug 2026 10:41:43 -0400 Subject: [PATCH] fix(release): correct dist archive names; disable go.sum-less setup-go cache The `dist` target built archives named `trazo__$os_$arch`, but in the shell recipe `$os_` parses as the variable `os_` (undefined), dropping the OS from the name. linux/amd64 and darwin/amd64 both collapsed to `trazo__amd64.tar.gz`, so the later darwin build overwrote the linux archive: the published linux artifact actually contained a macOS binary. Brace the expansions (`${os}_${arch}`) so every platform gets a distinct, correctly labeled archive (trazo__linux_amd64, _darwin_arm64, _windows_amd64, ...). Also set `cache: false` on every actions/setup-go step (ci + release). The core is stdlib-only with no go.sum, so setup-go's module cache had nothing to key on and logged "Dependencies file is not found" on every run. Co-Authored-By: Claude Opus 4.8 (1M context) --- .github/workflows/ci.yml | 3 +++ .github/workflows/release.yml | 1 + Makefile | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 967aafb..d05b26f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,6 +15,7 @@ jobs: - uses: actions/setup-go@v5 with: go-version: "1.25" + cache: false # stdlib-only, no go.sum to key a module cache on - name: Go build, vet, test run: | @@ -43,6 +44,7 @@ jobs: - uses: actions/setup-go@v5 with: go-version: "1.25" + cache: false # stdlib-only, no go.sum to key a module cache on - name: JSON Schema stays in sync with the Go types run: go test ./trajectory/ -run "TestSchema" -v @@ -69,6 +71,7 @@ jobs: - uses: actions/setup-go@v5 with: go-version: "1.25" + cache: false # stdlib-only, no go.sum to key a module cache on - name: Build the trazo binary run: go build -o trazo ./cmd/trazo diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4032b27..79555b4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -22,6 +22,7 @@ jobs: - uses: actions/setup-go@v5 with: go-version: "1.25" + cache: false # stdlib-only, no go.sum for setup-go to key its cache on - name: Tag matches the compiled-in version run: | diff --git a/Makefile b/Makefile index 70e4ea5..d78804a 100644 --- a/Makefile +++ b/Makefile @@ -63,7 +63,7 @@ dist: ## Build release archives for every target platform echo "building $$os/$$arch"; \ CGO_ENABLED=0 GOOS=$$os GOARCH=$$arch \ go build -trimpath -o $(DISTDIR)/$(BIN)$$ext $(CMD) || exit 1; \ - base=$(BIN)_$(VERSION)_$$os_$$arch; \ + base=$(BIN)_$(VERSION)_$${os}_$${arch}; \ if [ $$os = windows ]; then \ (cd $(DISTDIR) && zip -q $$base.zip $(BIN)$$ext && rm $(BIN)$$ext); \ else \