Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(cli): better version information #1007

Merged
merged 3 commits into from
Oct 16, 2024
Merged

feat(cli): better version information #1007

merged 3 commits into from
Oct 16, 2024

Conversation

W95Psp
Copy link
Collaborator

@W95Psp W95Psp commented Oct 16, 2024

This PR:

  • Improve cargo hax -V and cargo hax --version:
    Versions were broken: cargo hax -V was displaying the latest tag attached to the commit. So newer commits on main were tagged v0.1.0-alpha.
    Also, if hax is built without git, the version was empty. Now we use CARGO_PKG_VERSION as a fallback.
    cc @maximebuyse, you should get commit information from cargo hax --version, not cargo hax -V.
  • fixes cargo hax ... is cached regardless of hax version #801

Versions were broken: `cargo hax -V` was displaying the latest tag
attached to the commit. So newer commits on main were tagged
`v0.1.0-alpha`.

Also, if hax is built without git, the version was empty. Now we use
`CARGO_PKG_VERSION` as a fallback.
This commit takes into account hax version for cargo cache. Also, if
hax was built from a dirty git, the version is tainted with a hash of
the driver itself.
@maximebuyse maximebuyse added this pull request to the merge queue Oct 16, 2024
Merged via the queue into main with commit 69d97ef Oct 16, 2024
12 of 13 checks passed
@maximebuyse maximebuyse deleted the improve-hax-version branch October 16, 2024 14:32
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.

cargo hax ... is cached regardless of hax version
2 participants