Skip to content

The cross-harness, self-improving memory layer for AI agents. Join our community: https://discord.com/invite/zdNChS2fBu

Fix GoReleaser parallelism release guidance

shukieshah579abd011576
diff --git a/CLAUDE.md b/CLAUDE.md
index 5b2c991b..f569e064 100644
--- a/CLAUDE.md
+++ b/CLAUDE.md
@@ -130,7 +130,9 @@ CI release automation should:
- Build or restore the collector binaries expected by `.goreleaser.yaml` under
`collector-builder/dist/beacon-otelcol/<goos>_<goarch>/beacon-otelcol`.
- Run `goreleaser check` before publishing.
-- Run `goreleaser release --clean` from `cli/beacon`.
+- Run `goreleaser release --clean --parallelism 1` from `cli/beacon` because
+ the release pre-hook writes target-specific `beacon-hooks` binaries to a
+ shared embedded path.
- Provide `GITHUB_TOKEN` for the GitHub release and `HOMEBREW_TAP_TOKEN` with
write access to `asymptote-labs/homebrew-tap`.
@@ -182,7 +184,7 @@ git -C .tmp/release-<tag> tag -a <tag> -m "<tag>"
git -C .tmp/release-<tag> push origin <tag>
cd .tmp/release-<tag>/cli/beacon
goreleaser check
-GITHUB_TOKEN="${GITHUB_TOKEN:-$(gh auth token)}" HOMEBREW_TAP_TOKEN="${HOMEBREW_TAP_TOKEN:-$(gh auth token)}" goreleaser release --clean
+GITHUB_TOKEN="${GITHUB_TOKEN:-$(gh auth token)}" HOMEBREW_TAP_TOKEN="${HOMEBREW_TAP_TOKEN:-$(gh auth token)}" goreleaser release --clean --parallelism 1
```
After GoReleaser succeeds, verify both the GitHub release and the Homebrew tap:
diff --git a/cli/beacon/.goreleaser.yaml b/cli/beacon/.goreleaser.yaml
index 749035f5..ef68b854 100644
--- a/cli/beacon/.goreleaser.yaml
+++ b/cli/beacon/.goreleaser.yaml
@@ -3,11 +3,6 @@ version: 2
project_name: beacon
-# Each target build embeds a platform-specific beacon-hooks binary by writing
-# internal/embedded/hooks.bin in a pre-build hook. Keep release builds
-# serialized so concurrent targets cannot race and embed the wrong architecture.
-parallelism: 1
-
before:
hooks:
- go mod tidy
@@ -41,10 +36,10 @@ builds:
hooks:
pre:
# Build the hooks binary for this target platform and embed it.
- # IMPORTANT: This writes to a shared hooks.bin file. Release builds are
- # serialized at the top level so target builds cannot race here. The -a
- # flag above forces a full rebuild for each target so Go re-reads the
- # freshly-built hooks.bin instead of serving a stale copy from cache.
+ # IMPORTANT: This writes to a shared hooks.bin file. Run GoReleaser with
+ # --parallelism 1 so target builds cannot race here. The -a flag above
+ # forces a full rebuild for each target so Go re-reads the freshly-built
+ # hooks.bin instead of serving a stale copy from cache.
- cmd: bash -c 'cd ../beacon-hooks && GOOS={{ .Os }} GOARCH={{ .Arch }} go build -ldflags "-s -w -X github.com/asymptote-labs/agent-beacon/cli/beacon-hooks/internal/version.Version={{ .Version }}" -o ../beacon/internal/embedded/hooks.bin .'
output: true