Skip to content

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

Merged
sporksmith merged 1 commit intoshadow:mainfrom
sporksmith:unknown-versions
Jul 15, 2022
Merged

shadow version string: get commit hash and dirty status more robustly#2281
sporksmith merged 1 commit intoshadow:mainfrom
sporksmith:unknown-versions

Conversation

@sporksmith
Copy link
Copy Markdown
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 requested a review from stevenengler 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.

2 participants