Configure structopt to report the right version #352
No reviewers
Labels
No labels
action
check-aws
action
discussion-needed
action
for-external-contributors
action
for-newcomers
action
more-info-needed
action
need-funding
action
triage-required
kind
correctness
kind
ideas
kind
improvement
kind
performance
kind
testing
kind
usability
kind
wrong-behavior
prio
critical
prio
low
scope
admin-api
scope
background-healing
scope
build
scope
documentation
scope
k8s
scope
layout
scope
metadata
scope
ops
scope
rpc
scope
s3-api
scope
security
scope
telemetry
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: Deuxfleurs/garage#352
Loading…
Reference in a 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