The linux-amd64 release binary was the only CGO-enabled target missing
the gms_pure_go build tag, causing it to dynamically link against the
CI runner's libicui18n.so.74. Users on distros with newer ICU (e.g.
Arch with ICU 78) got "cannot open shared object file" errors.
Add the tag to match all other targets (linux-arm64, darwin, etc.),
remove the now-unnecessary libicu-dev from the release workflow, and
add a post-build ldd check to catch ICU linkage regressions.
Fixes#2986
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
mktemp on macOS creates dirs like tmp.XXXXXXXX which contain dots.
Dots are invalid in Dolt database names. Use a clean subdirectory
with an explicit --prefix for the smoke test.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
After the repo transfer, all release, deploy, and publishing workflows
were silently skipped because the repository guards still referenced
the old org. Updates 6 conditional checks across 3 workflow files.
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Only Linux amd64/arm64 can cross-compile with CGO on the CI runner.
macOS needs CoreFoundation/Security frameworks, Windows needs mingw
with framework support, and Android/FreeBSD lack sysroot headers.
These platforms use server mode; embedded Dolt is Linux-only for now.
Removes zig setup (no longer needed — Linux arm64 uses system gcc).
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Zig lacks sysroot headers for android and freebsd targets, causing
stdlib.h not found errors. Revert these two targets to CGO_ENABLED=0
(they do not need embedded Dolt). Remove unused zig wrappers.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The original PR used homebrew_casks: which generates Cask-format files,
but the existing tap (steveyegge/homebrew-beads) uses Formula-class format.
Switch to brews: which generates the correct formula format. Also add
skip_upload: auto so releases succeed even without HOMEBREW_TAP_TOKEN.
Co-authored-by: peterkc <peterkc@users.noreply.github.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Executed-By: beads/crew/emma
Rig: beads
Role: crew
Add `homebrew_casks:` section to goreleaser config so each tagged
release auto-updates the `steveyegge/homebrew-beads` tap formula.
Requires a `HOMEBREW_TAP_TOKEN` repo secret (fine-grained PAT with
contents:write on the homebrew-beads repo). Without the secret,
goreleaser skips the tap publish gracefully.
Fixes the gap where `brew install beads` stayed on v0.55.4 while
GitHub releases shipped v0.56.1.
Executed-By: beads/crew/emma
Rig: beads
Role: crew
Fix release CI: strip -lresolv entirely from zig cross-compilation
wrappers instead of replacing with -lresolv.9 (zig sysroot has neither).
macOS builds use netgo tag so libresolv is not needed.
Also add GitHub API rate limit warnings to release formula, release.sh,
and emma private memory to prevent burning 5000/hr quota during CI wait.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Executed-By: beads/crew/emma
Rig: beads
Role: crew
Fix release workflow YAML broken by heredoc in zig wrapper step,
fix marketplace.json version missed in v0.55.0, run gofmt on 8 files,
fix unused parameter and dead code lint in config.go.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Executed-By: beads/crew/emma
Rig: beads
Role: crew
Zig 0.14.0 filters -lresolv as a macOS libc name and fails to find it
during cross-compilation. Using -lresolv.9 bypasses this filter and
links the versioned library correctly (ziglang/zig#16674).
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Executed-By: beads/crew/emma
Rig: beads
Role: crew
The AccessDenied error in gozstd compilation is a known zig 0.13.0 bug
(ziglang/zig#20689) fixed by PR #20740. Upgrading to 0.14.0 (released
Jan 30, 2026) resolves the root cause. Keep flock serialization as
defense-in-depth.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Executed-By: beads/crew/emma
Rig: beads
Role: crew
The per-target cache dir approach failed because Go parallel package
compilation spawns multiple zig CC processes within a single goreleaser
target, racing on the zig cache. Using flock serializes zig invocations
per target, preventing AccessDenied errors in gozstd compilation.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Executed-By: beads/crew/emma
Rig: beads
Role: crew
Goreleaser builds targets in parallel, causing concurrent zig cc
invocations to race on the shared cache directory. Give each
cross-compilation wrapper its own cache dir.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Executed-By: beads/crew/emma
Rig: beads
Role: crew
Released binaries were built with CGO_ENABLED=0, making the Dolt storage
backend completely non-functional. The nocgo stub files return errNoCGO
for every Dolt operation (init, create, list, show, update, close, commit,
push, pull, sync, federation).
Enable CGO for all 8 release targets using zig as a cross-compiler for
non-native targets. The gms_pure_go build tag on cross-compiled targets
bypasses the ICU C++ dependency, while the native linux/amd64 build
retains full ICU regex performance. gozstd bundles its own C source so
zig can cross-compile it without system dependencies.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The Homebrew formula is named "beads" (not "bd"), so all brew commands
must use `brew install beads` / `brew upgrade beads`. Also removes the
dead update-homebrew job from release.yml — homebrew-core handles
formula updates automatically.
Follows up on #1557 which fixed the Go code in bd doctor.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add go-winres integration to embed legitimate PE resource metadata (company name,
product name, version, file description, copyright, and application manifest) into
Windows binaries. AV heuristic engines check for PE metadata as a trust signal --
its absence is one of the triggers for Go binary false positives like Kaspersky
PDM:Trojan.Win32.Generic detection.
- Add cmd/bd/winres/ with PE version info config and app manifest
- Add scripts/gen-winres.sh to generate .syso resource files
- Update .goreleaser.yml before hooks to run gen-winres at build time
- Update release.yml CI to install go-winres
- Update version bump script to include winres metadata
- Update ANTIVIRUS.md documentation
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* feat: update to use core tap for beads installation
Signed-off-by: Rui Chen <rui@chenrui.dev>
* remove custom tap related code and refs
Signed-off-by: Rui Chen <rui@chenrui.dev>
---------
Signed-off-by: Rui Chen <rui@chenrui.dev>
- Guard deploy-docs job to only run in canonical repository
- Guard goreleaser job to only run in canonical repository
- Guard update-homebrew job to only run in canonical repository
- Guard test-pypi job to only run in canonical repository
Prevents fork workflows from attempting to deploy, release, or publish to external services.
Implements Authenticode signing for Windows binaries to reduce AV false positives.
Changes:
- Add scripts/sign-windows.sh for osslsigncode-based signing
- Update .goreleaser.yml with post-build signing hook
- Update release.yml to install osslsigncode and pass secrets
- Update docs/ANTIVIRUS.md with signing verification instructions
- Update scripts/README.md with signing script documentation
The signing is gracefully degraded - releases continue without signing
if the certificate secrets are not configured.
Required secrets for signing:
- WINDOWS_SIGNING_CERT_PFX_BASE64: base64-encoded PFX certificate
- WINDOWS_SIGNING_CERT_PASSWORD: certificate password
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
npm deprecated classic tokens and now requires either granular tokens
with 2FA or OIDC trusted publishing. This updates the workflow to use
the latter, which is npm recommended approach for CI/CD.
Requires configuring trusted publisher on npmjs.com:
- Organization: steveyegge
- Repository: beads
- Workflow: release.yml
Generated with Claude Code
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Adds comprehensive Git worktree support for beads issue tracking:
Core changes:
- New internal/git/gitdir.go package for worktree detection
- GetGitDir() returns proper .git location (main repo, not worktree)
- Updated all hooks to use git.GetGitDir() instead of local helper
- BeadsDir() now prioritizes main repository's .beads directory
Features:
- Hooks auto-install in main repo when run from worktree
- Shared .beads directory across all worktrees
- Config option no-install-hooks to disable auto-install
- New bd worktree subcommand for diagnostics
Documentation:
- New docs/WORKTREES.md with setup instructions
- Updated CHANGELOG.md and AGENT_INSTRUCTIONS.md
Testing:
- Updated tests to use exported git.GetGitDir()
- Added worktree detection tests
Co-authored-by: Claude <noreply@anthropic.com>
Closes: #478
- Use Node.js 22
- Install npm@latest (requires >= 11.5.1 for OIDC)
- Remove --provenance flag (automatic with trusted publishing)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
Remove registry-url from setup-node to let npm use OIDC trusted publishing
directly without the .npmrc interference.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
Remove NPM_TOKEN, rely on GitHub Actions OIDC for authentication.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
- Enable CGO in GoReleaser config
- Add MinGW cross-compiler for Windows builds
- Split builds per platform to configure correct CC
- Install cross-compilation toolchains in release workflow
Fixes#253
Amp-Thread-ID: https://ampcode.com/threads/T-8600ed89-42af-4785-b5dc-01ad37f1451d
Co-authored-by: Amp <amp@ampcode.com>
- Add 'if: always()' to publish-pypi job so it runs even if goreleaser fails
- Remove 'go test' from .goreleaser.yml since CI already runs tests
- This ensures MCP server gets published even if binary release has issues
- Change version.go constants to variables for ldflags to work
- Fix changelog regex to properly match feat(scope): and fix(scope):
- Enable windows/arm64 builds (pure Go, no CGO issues)
- Add concurrency guard to release workflow
Oracle review feedback implemented.
- Add .goreleaser.yml for automated releases
- Add .github/workflows/release.yml triggered on version tags
- Build matrix: darwin/linux/windows for amd64/arm64
- Update install.sh to download from GitHub releases first
- Add install.sh symlink at root for convenience
- Update RELEASING.md with automation documentation
Closes#89 (vendorable executables as releases)
Implements bd-85
Amp-Thread-ID: https://ampcode.com/threads/T-02baad43-7e97-4710-bc60-777643d2eb77
Co-authored-by: Amp <amp@ampcode.com>