Configure structopt to report the right version #352
No reviewers
Labels
No Label
AdminAPI
Bug
Check AWS
CI
Correctness
Critical
Documentation
Ideas
Improvement
Low priority
Newcomer
Performance
S3 Compatibility
Testing
Usability
No Milestone
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: Deuxfleurs/garage#352
Loading…
Reference in New Issue
No description provided.
Delete Branch "bug/reported-version"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
By default, structopt reports the value provided by
the env var CARGO_PKG_VERSION, feeded by Cargo when reading
Cargo.toml. However for Garage we use a versioning based on git,
so we often report a version that is behind the real version.
In this commit, we create garage_util::version::garage() that
reports the right version and configure all structopt subcommands
to call this function instead of using the env var.
Fix #350
You can try it by yourself, I tagged this commit with
v0.7.2_ci-test-2
in git and then:6e58748545
toe9488683e0
e9488683e0
toe757bbe181
e757bbe181
toc2554d0953
Configure structopt to report the right versionto WIP: Configure structopt to report the right versionc2554d0953
to4a693ff29e
4a693ff29e
to2c7bae935a
WIP: Configure structopt to report the right versionto Configure structopt to report the right version