beads/.buildflags
Chris Sells 789044b83e chore: purge deleted docs-pipeline references from release tooling, CI, and repo plumbing
- beads-release formula: drop the snapshot-docs step (ran the deleted
  scripts/snapshot-release-docs.sh on the critical needs-chain); stamp-
  changelog now needs update-vendorhash
- update-versions.sh: remove the mangled --skip-docs/docs-snapshot logic
  and garbled usage text left by mid-line deletions
- pre-push hook: drop the snapshot-script remediation hint
- release.yml: collapse the prerelease branch; BEADS_REQUIRE_RELEASE_DOCS
  has no consumer since check-docs-version.sh was deleted
- RELEASING.md / scripts/docs.md: describe the current pipeline (no
  --versioned, no website/ outputs, no check-docs-version.sh)
- docs-mintlify.yml: paths filter now includes engdocs/** and the curated
  root markdown files the docsync guard validates
- docs-render-check.sh: pin mint@4.2.687, fail closed when mint dies
  without producing a broken-links report, parse report lines only, drop
  dead extract_page_links(), fix the stale jq requirement; mint.sh pins
  the same version
- nightly.yml: remove the deleted website measurement suite option
- CODEOWNERS: init-safety ADR gate follows the file to engdocs/adr/
- beads-docs skill: align with settled decision 6 — no pointer stubs,
  moved pages get docs.json redirects; bd's printed paths are fixed at
  the source
- CHANGELOG (edited line), FEDERATION-SETUP, README, examples, oracle-a,
  .buildflags, gh-issue-to-pr formula: retarget moved-file references;
  anchor the build/ gitignore pattern
2026-07-12 11:07:26 -07:00

24 lines
1.1 KiB
Text

# Canonical build flags for beads. Source this in any script that invokes
# `go` to get the project-wide build settings. Scripts that intentionally
# exercise the ICU path (e.g. scripts/test-cgo.sh) do NOT source this.
#
# Rationale: go-mysql-server links ICU by default under cgo. beads never
# uses SQL REGEXP, so we always build with -tags=gms_pure_go. See
# engdocs/ICU-POLICY.md for the full policy.
# Embedded Dolt requires CGO; server mode and nocgo builds do not. Default
# to 1 for the embedded-capable build paths that sourced this, but respect
# a caller who explicitly set CGO_ENABLED=0 (e.g. a static/nocgo build).
: "${CGO_ENABLED:=1}"
export CGO_ENABLED
# Build tag that tells go-mysql-server to use Go's stdlib regex instead of
# the ICU-backed go-icu-regex. Exported so callers can compose with extra
# tags: `go test -tags=regression,$BEADS_BUILD_TAGS ...`
export BEADS_BUILD_TAGS="gms_pure_go"
# Propagate the tag via GOFLAGS so every subsequent bare `go` invocation
# picks it up automatically. Idempotent: re-sourcing is a no-op.
if [[ "${GOFLAGS:-}" != *gms_pure_go* ]]; then
export GOFLAGS="${GOFLAGS:+$GOFLAGS }-tags=${BEADS_BUILD_TAGS}"
fi