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

shadow version string: get commit hash and dirty status more robustly #2281

Merged
merged 1 commit into from
Jul 15, 2022

Conversation

sporksmith
Copy link
Contributor

Adding the --always tag allows git describe to succeed even if
a relevant tag can't be found. e.g. in the case of a shallow checkout
without tags it results in a version string like "5a6993e" instead of
the hard-coded version number "v2.1.0", which is misleading.

Adding the `--always` tag allows `git describe` to succeed even if
a relevant tag can't be found. e.g. in the case of a shallow checkout
without tags it results in a version string like "5a6993e" instead of
the hard-coded version number "v2.1.0", which is misleading.
@github-actions github-actions bot added the Component: Build Build/install tools and dependencies label Jul 15, 2022
@sporksmith sporksmith marked this pull request as ready for review July 15, 2022 02:12
@sporksmith sporksmith merged commit f27c62a into shadow:main Jul 15, 2022
@sporksmith sporksmith deleted the unknown-versions branch July 15, 2022 13:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Build Build/install tools and dependencies
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants