Use a proper fallback when git describe fails#6941
Conversation
|
Thanks for your pull request, @wilzbach! We are looking forward to reviewing it, and you should be hearing from a maintainer soon. Some tips to help speed things up:
Bear in mind that large or tricky changes may require multiple rounds of review and revision. Please see CONTRIBUTING.md for more information. Bugzilla referencesYour PR doesn't reference any Bugzilla issue. If your PR contains non-trivial changes, please reference a Bugzilla issue or create a manual changelog. |
|
How to reproduce: git clone --depth 1 -b stable https://github.com/dlang/dmd
cd dmd && make -f posix.mak all |
|
How about using |
That's only the commit hash. |
Err, no it's not? I mean it is if it's a shallow clone, but you could still combine it with VERSION if you wanted to. Using VERSION without anything else seems a bit more misleading as it can then be confused with a tagged release. |
Use a proper fallback when `git describe` fails merged-on-behalf-of: Martin Nowak <code@dawg.eu>
That's our fallback, e.g. for non-git repos, is it really worth having another fallback (e.g. |
#6935 broke CircleCi on Phobos, because now
git describefailures lead to hard errors and abortion of the build process.The fix even removes two lines :)
CC @CyberShadow @MartinNowak