Skip to content

Fix version mismatch between binary and git tags#31

Merged
msaroufim merged 1 commit intomainfrom
fix/version-mismatch
Feb 1, 2026
Merged

Fix version mismatch between binary and git tags#31
msaroufim merged 1 commit intomainfrom
fix/version-mismatch

Conversation

@msaroufim
Copy link
Member

@msaroufim msaroufim commented Feb 1, 2026

Add CI step to automatically sync Cargo.toml version from git tag before building, ensuring the binary always reports the correct version.

Fixes #25

@msaroufim msaroufim force-pushed the fix/version-mismatch branch 2 times, most recently from 835cffe to 1ce43ca Compare February 1, 2026 20:49
- Add build.rs that reads CLI_VERSION env var (defaults to "dev")
- Update clap to use CLI_VERSION set by build script
- Set Cargo.toml version to 0.0.0-dev as placeholder
- CI passes git tag as CLI_VERSION when building releases

Local builds show "dev", release builds show the tag version.

Fixes #25
@msaroufim msaroufim force-pushed the fix/version-mismatch branch from 1ce43ca to 286d3f2 Compare February 1, 2026 20:51
@msaroufim msaroufim merged commit bb01cc4 into main Feb 1, 2026
8 checks 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.

Binary reports version 0.1.0 instead of git tag version

1 participant