Build the Nix package with the existing gms_pure_go tag while using proxyVendor to avoid stale vendor/modules.txt consistency checks. Remove leftover ICU flake wiring and the debug env dump from postPatch.
Based on the focused Nix changes from #3278; contributor attribution preserved in c9fa7cf8b.
Closes bd-9ok
- Removed bare first-party go install .../cmd/bd@latest guidance from docs,
website docs, plugin/npm docs, examples, and doctor hints.
- Standardized on:
- CGO_ENABLED=0 go install ... for server-mode only
- CGO_ENABLED=1 GOFLAGS=-tags=gms_pure_go go install ... for embedded-
capable
- Added scripts/check-go-install-guidance.sh and wired it into CI.
- Updated default.nix to use gms_pure_go instead of ICU flags.
Validation passed locally:
- make test
- golangci-lint run --build-tags=gms_pure_go ./...
- ./scripts/check-go-install-guidance.sh
- ./scripts/check-build-tags.sh
- go test -tags gms_pure_go ./cmd/bd/doctor
- doc flag check
The vendorHash in default.nix went stale after several dependabot
updates to go.mod/go.sum landed post-PR #3064. Updates to the value
reported by Nix as "got" by @luccahuguet.
Fixes#3221
Co-authored-by: luccahuguet <luccahuguet@users.noreply.github.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Stable release. Embedded Dolt default on all platforms, critical
reliability fixes (concurrent panic, spaces in path, schema migration),
22 community PRs merged, tracker hardening across all backends.
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>
Gate embeddeddolt package on //go:build cgo with stub files for !cgo.
Android and freebsd targets use CGO_ENABLED=0 since zig lacks sysroot
headers for these platforms. Server mode still works on all targets.
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>
Embedded Dolt is now the default storage backend. Adds multi-project/team
sync for Linear/Jira/ADO, Notion and GitLab sync, bd create --graph,
simplified backup system, and 18 bug fixes from 18 contributors.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The overlay must target go_1_25 (not go) because buildGoModule
references go_1_25 directly on nixos-25.11.
Also update vendorHash from placeholder to correct value so
nix build produces a working bd binary.
Cherry-picked from PR #2512 (MelsovCOZY). The go mod edit approach is
cleaner and more correct than sed for modifying go.mod.
Co-authored-by: Melsov Yernur <MelsovCOZY@users.noreply.github.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Switch from nixpkgs-unstable to nixpkgs-25.11 which has Go 1.25.6.
Drop flake-utils in favor of inline forAllSystems helper (modern convention).
Refactor default.nix to follow callPackage conventions (explicit deps).
Extract packages.nix for cleaner separation.
Adjustments from original PR:
- Removed unnecessary icu/pkg-config deps (no CGO/ICU usage in beads)
- Removed commented-out dead overlay code
- Preserved shell completion sub-packages (fish/bash/zsh)
Closes#2314
Co-Authored-By: Nick Zadrozny <nz@omc.io>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The v0.57.0 release was tagged and published from a polecat branch but
the version bump commit was never merged back to main. This lands the
version files, CHANGELOG, and info.go versionChanges on main.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Executed-By: beads/crew/emma
Rig: beads
Role: crew
v0.56.0 release failed because verify-cgo.sh was added to darwin and
freebsd builds which intentionally use CGO_ENABLED=0. Bump to v0.56.1.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Executed-By: beads/crew/emma
Rig: beads
Role: crew
Disable CGO for FreeBSD cross-compilation (zig sysroot lacks stdlib.h).
Add PreToolUse hook to block gh run watch across all crew sessions.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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
Also fixes ruff target-version in pyproject.toml (was clobbered to
"0.50.0" by version bump script, restored to "py310").
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Nix flake: replace GOTOOLCHAIN=auto (cannot download in sandbox) with
postPatch that relaxes go.mod version to match the available nixpkgs Go.
This fixes the go.mod requires go >= 1.25.6 build failure.
Lint: handle rows.Close() return value to satisfy gosec G104.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Nix CI fails before reaching vendorHash validation because nixpkgs has
Go 1.25.5 but go.mod requires 1.25.6+. VendorHash update must wait until
nixpkgs-unstable ships Go 1.25.6+. Restoring original hash.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Executed-By: beads/crew/emma
Rig: beads
Role: crew
Embedded Dolt restore brought back ~100 transitive deps. Setting vendorHash
to fake hash so CI produces the correct value in its error output.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Executed-By: beads/crew/emma
Rig: beads
Role: crew
Patch release to restore embedded Dolt mode that was incorrectly
removed from Beads in v0.49.5 (was only supposed to be removed
from Gas Town).
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Executed-By: beads/crew/emma
Rig: beads
Role: crew
- Update default.nix vendorHash after go.mod version change
- Suppress gosec G204 false positive in countLinesInGitHEAD (relPath
is from filepath.Rel, not user input)
- Remove dead clearSyncBranchGitignore function (never called, always
returned nil)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Compiling Go 1.25.6 from source in CI is overkill. Use the simpler
continue-on-error approach until nixpkgs-unstable updates Go.
Per nixpkgs#456759, even stable 25.05 only has Go 1.25.3, and
unstable has 1.25.1/1.25.2. Neither has 1.25.6 yet.
Estimated wait: 1-3 weeks for patch version update.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>