Commit graph

50 commits

Author SHA1 Message Date
julianknutsen
d3cb80c3a9 chore: harden release and dependency security 2026-04-28 08:45:22 +00:00
Julian Knutsen
2cd8864d3d
ci: mint Homebrew tap token from GitHub App (#3472)
* ci: mint Homebrew tap token from GitHub App

* ci: gate release publishing to tag refs
2026-04-25 14:47:29 -07:00
matt wilkie
ecd2f7268c fix packaging and windows install regressions
Fixes #3388
Fixes #3399
Fixes #3404
Fixes #3454

Co-authored-by: jasononeil <315158+jasononeil@users.noreply.github.com>
Co-authored-by: seanmartinsmith <114885497+seanmartinsmith@users.noreply.github.com>
2026-04-24 11:48:39 -07:00
Dustin Brown
8269ab7791
fix: add gms_pure_go tag to linux-amd64 build to remove ICU runtime dep (#2991)
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>
2026-04-05 17:21:16 -07:00
beads/crew/emma
72170267e0 ci: fix macOS smoke test temp dir with dots in name
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>
2026-04-02 22:29:09 -07:00
Dustin Brown
d326a27b4b
/{.github,.goreleaser}: enable embedded by default on mac (#2971)
* /{.github,.goreleaser}: enable embedded by default on mac

* /.github/workflows/release.yml: pr feedback
2026-04-02 20:37:41 -07:00
Julian Knutsen
36e063d8b4
fix: update workflow gates from steveyegge/beads to gastownhall/beads (#2936)
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>
2026-03-31 14:38:49 -07:00
beads/crew/emma
884cc1171e fix(release): revert all non-Linux targets to CGO_ENABLED=0, bump v0.63.3
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>
2026-03-30 08:58:25 -07:00
beads/crew/emma
2321038ed5 fix(release): disable CGO for android/freebsd builds, bump to v0.63.1
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>
2026-03-29 15:56:55 -07:00
beads/crew/emma
7bc8fe1884 fix(release): use brews instead of homebrew_casks for formula publishing
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
2026-02-28 23:50:20 -08:00
Peter Chanthamynavong
f14c29f07b fix(release): auto-publish Homebrew tap on release
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
2026-02-28 23:50:20 -08:00
renovate[bot]
afbf65fcec
chore(deps): update dependency node to v24 (#1987)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-02-22 15:23:58 -08:00
renovate[bot]
f63c2b4feb
chore(deps): update goreleaser/goreleaser-action action to v7 (#1988)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-02-22 15:23:56 -08:00
renovate[bot]
3c54cf12fa
chore(deps): update python docker tag to v3.14 2026-02-22 03:59:38 +00:00
beads/crew/emma
af1a77884d chore: Bump version to 0.55.2
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
2026-02-20 09:00:55 -08:00
beads/crew/emma
e3b9e86c4a chore: Bump version to 0.55.1
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
2026-02-19 21:30:49 -08:00
beads/crew/emma
8be83f0489 fix(ci): replace -lresolv with -lresolv.9 in zig wrappers for macOS
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
2026-02-19 20:34:35 -08:00
beads/crew/emma
7d27a34fce fix(ci): upgrade zig 0.13.0 to 0.14.0 to fix AccessDenied bug
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
2026-02-18 22:28:51 -08:00
beads/crew/emma
30d6786f9e fix(ci): use flock to serialize zig CC calls per target
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
2026-02-18 22:05:47 -08:00
beads/crew/emma
5fd25249af chore: Bump version to 0.54.0
Fix goreleaser zig cross-compilation race with --parallelism 1.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

Executed-By: beads/crew/emma
Rig: beads
Role: crew
2026-02-18 21:46:26 -08:00
beads/crew/emma
6c61b2c9fe fix(ci): unset global zig cache env vars in cross-compilation wrappers
Repo-level ZIG_GLOBAL_CACHE_DIR/ZIG_LOCAL_CACHE_DIR override the
per-wrapper exports, causing AccessDenied races when goreleaser
builds multiple targets in parallel.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

Executed-By: beads/crew/emma
Rig: beads
Role: crew
2026-02-18 21:20:53 -08:00
beads/crew/emma
9364f716e3 fix(ci): per-target zig cache to prevent AccessDenied race
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
2026-02-18 21:19:10 -08:00
Jordan Hubbard
d4bec73140 feat(release): enable CGO_ENABLED=1 for all release builds
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>
2026-02-17 09:49:41 -08:00
Pablo LION
a46c1db86e fix: correct brew commands and remove dead homebrew CI job
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>
2026-02-09 08:02:42 +01:00
beads/crew/darcy
66b7fc4a45 feat: embed Windows PE version info to reduce antivirus false positives (bd-t4u1)
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>
2026-02-06 17:51:11 -08:00
Dustin Brown
2c7e2d88af
Revert Dolt lock cleanup workaround; fix embedded Dolt open via driver retries (#1389)
* Revert "fix(dolt): add lock retry and stale lock cleanup for operational reliability (#1260)"

This reverts commit d037158624.

* /{internal,go.mod,go.sum}: bump dolt driver, fix file after revert

* /{go,internal}: fix embedded dolt

* /{docs,internal}: fix path error

* /go.{mod,sum}: bump driver

* /{cmd,.github}: update workflows to pickup go.mod go version, fix lint error

* /.github/workflows/ci.yml: add icu4

* /{cmd,internal}: fix failing tests

---------

Co-authored-by: Test <test@example.com>
2026-01-30 22:25:33 -08:00
beads/crew/emma
0d99d15370 fix(ci): update Go version to 1.24 in release workflow
Executed-By: beads/crew/emma
Rig: beads
Role: crew
2026-01-25 21:04:17 -08:00
Rui Chen
66d1e63158
feat: update to use core tap for beads installation (#1261)
* 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>
2026-01-24 17:11:21 -08:00
Salman Chishti
0cf19d438a
Upgrade GitHub Actions for Node 24 compatibility (#1307)
Signed-off-by: Salman Muin Kayser Chishti <13schishti@gmail.com>
2026-01-24 17:10:36 -08:00
matt wilkie
625ac5dff2
Add repository guards to deployment workflows (#877)
- 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.
2026-01-03 21:16:09 -08:00
Jordan Hubbard
aa2ea48bf2
feat: add FreeBSD release builds (#832)
* feat: add FreeBSD release builds

Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>

* chore: allow manual release dispatch

Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>

* fix: stabilize release workflow on fork

Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>

* fix: clean zig download artifact

Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>

* fix: use valid zig target for freebsd arm

Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>

* fix: disable freebsd arm release build

Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>

* fix: switch freebsd build to pure go

Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>

* fix: skip release publishing on forks

Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>

* fix: satisfy golangci-lint for release PR

---------

Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
2026-01-01 10:51:51 -08:00
Steve Yegge
3c786f2333 feat: add Windows code signing infrastructure (bd-14v0)
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>
2025-12-24 00:07:16 -08:00
Steve Yegge
b10d800e40 fix: Update npm publish to use OIDC trusted publishing
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>
2025-12-17 19:51:10 -08:00
dependabot[bot]
040724c5e2
chore(deps): bump actions/setup-node from 4 to 6 (#575)
Bumps [actions/setup-node](https://github.com/actions/setup-node) from 4 to 6.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](https://github.com/actions/setup-node/compare/v4...v6)

---
updated-dependencies:
- dependency-name: actions/setup-node
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-12-15 21:13:57 -08:00
matt wilkie
e01b7412d9 feat: add Git worktree compatibility (PR #478)
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
2025-12-13 12:50:33 -08:00
dependabot[bot]
33a5455440
chore(deps): bump actions/setup-node from 4 to 6 (#489)
Bumps [actions/setup-node](https://github.com/actions/setup-node) from 4 to 6.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](https://github.com/actions/setup-node/compare/v4...v6)

---
updated-dependencies:
- dependency-name: actions/setup-node
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Steve Yegge <steve.yegge@gmail.com>
2025-12-13 06:41:28 -08:00
Steve Yegge
214da06d59 chore: Update npm for OIDC trusted publishing support
- 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>
2025-11-29 21:49:17 -08:00
Steve Yegge
2614d8b221 chore: Use pure OIDC for npm publishing (no registry-url)
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>
2025-11-29 21:45:57 -08:00
Steve Yegge
72928255d7 chore: Use pure OIDC trusted publishing for npm
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>
2025-11-29 21:32:02 -08:00
Steve Yegge
03d62d0f8e ci: add provenance attestation to npm publish 2025-11-25 18:31:40 -08:00
Steve Yegge
611d1e6e80 ci: add automated npm publish to release workflow 2025-11-25 18:25:08 -08:00
dependabot[bot]
f6934ca68f
Bump actions/checkout from 4 to 6
Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 6.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v4...v6)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-24 20:51:18 +00:00
Steve Yegge
77dcf5595c Fix Homebrew formula update in release workflow 2025-11-08 23:14:43 -08:00
Steve Yegge
d3de5519b2 Fix Windows SQLite support in releases
- 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>
2025-11-07 15:54:59 -08:00
Steve Yegge
ef8585bd2e feat: Add automatic Homebrew formula update to release workflow 2025-11-06 20:35:25 -08:00
Steve Yegge
0e13a4268d Fix Go version in release workflow (1.24 -> 1.23) 2025-10-26 23:38:53 -07:00
Steve Yegge
b0b9c37f6b Fix PyPI publish workflow to run independently of GoReleaser
- 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
2025-10-24 22:38:42 -07:00
Steve Yegge
32ddf92007 feat: Automate PyPI publishing via GitHub Actions
- Add PyPI publish job to release workflow (runs after GoReleaser)
- Add manual TestPyPI workflow for testing uploads
- Update RELEASING.md:
  - Document automated PyPI publishing
  - Fix go install vs brew conflicts
  - Simplify Homebrew upgrade instructions
- Created bd-87 for epic command daemon support
- Closed bd-86 (merge transactions) as won't fix

Amp-Thread-ID: https://ampcode.com/threads/T-ea1982a4-56dc-482a-8c00-00963623cd64
Co-authored-by: Amp <amp@ampcode.com>
2025-10-23 19:58:11 -07:00
Steve Yegge
e009296f13 fix: Code review fixes for GoReleaser setup
- 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.
2025-10-23 19:20:07 -07:00
Steve Yegge
50eb9ce550 feat: Add GoReleaser workflow for cross-platform binary releases
- 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>
2025-10-23 19:02:12 -07:00