Skip to content

log solrac version in solrac.boot#28

Merged
cjus merged 1 commit into
mainfrom
carlos/solrac-boot-log-version
May 16, 2026
Merged

log solrac version in solrac.boot#28
cjus merged 1 commit into
mainfrom
carlos/solrac-boot-log-version

Conversation

@cjus
Copy link
Copy Markdown
Owner

@cjus cjus commented May 16, 2026

Why

Today an operator looking at logs has no way to confirm which Solrac version a running process actually is — package.json is shipped in the binary but never surfaced at runtime. This bit us in the v0.7.1 release thread: a user reported the harmony-token leak (fixed in #26) was still happening, and the only way to diagnose "are you on the binary that includes the fix?" was inference from tag dates. A version field in the boot log makes that one-liner clear.

Change

  • src/main.ts: import packageJson from "../package.json" and add version: packageJson.version as the first field of the existing solrac.boot info log.
  • docs/CONFIG.md: matching "version": "0.7.1" line in the boot-log example JSON.

bun build --compile embeds JSON imports, so the packaged binary's boot log carries whatever package.json.version was at build time — for tag-triggered builds that's the version the release flow just bumped to.

Test plan

  • npm run typecheck clean
  • Local boot — confirm solrac.boot includes version: "0.7.1" (will verify post-merge with the next release)

@cjus cjus merged commit b30ed01 into main May 16, 2026
1 check passed
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