Skip to content

docs: complete the local compile command in AGENTS.md - #1420

Open
centraldogma99 wants to merge 1 commit into
backnotprop:mainfrom
centraldogma99:docs/local-build-command
Open

docs: complete the local compile command in AGENTS.md#1420
centraldogma99 wants to merge 1 commit into
backnotprop:mainfrom
centraldogma99:docs/local-build-command

Conversation

@centraldogma99

Copy link
Copy Markdown

The local compile command in AGENTS.md (## Build) drops both flags the release workflow uses, so a binary built by following the docs differs from a released one.

Source of truth: .github/workflows/release.yml:111 compiles with --no-compile-autoload-bunfig and --define "__CLI_VERSION__=\"$VERSION\"".

Two concrete failure modes:

  • No version identity. Without the __CLI_VERSION__ define, plannotator --version takes the fallback in apps/hook/server/cli.ts:128 and prints plannotator dev — a locally built binary can't be told apart from any other. Verified locally: the documented command prints plannotator dev; with the define it prints plannotator 0.0.0-dev.
  • SIGKILL on macOS with bun 1.3.12. The cross-compile signing regression tracked in macOS: binary is unsigned, killed with SIGKILL (exit 137) on macOS Sequoia #541 loses the linker signature; the binary is killed on launch with no error and codesign -dv reports it as unsigned. This is why release.yml pins bun-version: 1.3.14 and keeps the macOS smoke leg (release.yml:174-175). Hit for real; upgrading bun resolved it. The docs said nothing about the floor.

Docs-only change: the corrected command with an obviously-local 0.0.0-dev placeholder, plus one sentence naming the flags' source and the macOS bun floor. No restructuring.

bun run check:release-version passes.

Per CONTRIBUTING.md this is a fork → PR contribution under the repo's dual Apache-2.0/MIT licensing.

The documented local build dropped both flags the release workflow
compiles with (.github/workflows/release.yml:111). Without the
__CLI_VERSION__ define, `plannotator --version` falls back to
`plannotator dev` (apps/hook/server/cli.ts:128), so a locally built
binary carries no identifying version.

Also note the macOS bun floor: 1.3.12 loses the linker signature and
the compiled binary is SIGKILLed on launch (backnotprop#541), which is why CI
pins bun-version 1.3.14.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Lz3aBzrpHocVFU94YN7QBr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant