feat: inject git build metadata and add version command #4

Merged
guochao merged 1 commit from guochao/agent-run:master into master 2026-05-03 10:12:25 +00:00
Owner

Add build.rs to capture BUILD_GIT_HASH, BUILD_GIT_DIRTY, BUILD_GIT_DATE,
and BUILD_DATE at compile time, with env-first fallback to git commands.
Wire --version option and new version subcommand to display the metadata.
Update Nix builds to pass sourceInfo from flake inputs so sandboxed builds
also get accurate commit info.

Add build.rs to capture BUILD_GIT_HASH, BUILD_GIT_DIRTY, BUILD_GIT_DATE, and BUILD_DATE at compile time, with env-first fallback to git commands. Wire --version option and new `version` subcommand to display the metadata. Update Nix builds to pass sourceInfo from flake inputs so sandboxed builds also get accurate commit info.
Add build.rs to capture BUILD_GIT_HASH, BUILD_GIT_DIRTY, BUILD_GIT_DATE,
and BUILD_DATE at compile time, with env-first fallback to git commands.
Wire --version option and new `version` subcommand to display the metadata.
Update Nix builds to pass sourceInfo from flake inputs so sandboxed builds
also get accurate commit info.
guochao merged commit 4be34a7cb5 into master 2026-05-03 10:12:25 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: public/agent-run#4
No description provided.