adjust custom naming, clickable commit hash in brackets #2981
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Short roundup of the initial problem
Version got extended with
-custom_GIT-COMMIT-HASH
for non-tagged builds to have a reference where there are build from or what they are based on:So people would copy that info when they open a issue to help us with troubleshooting.
Before we used only
GIT-COMMIT-HASH
as version, which had the nice feature that when copied to GitHub it was clickable and linked to the commit itself.It was then very easy to check and see a date and what the most recent change was about. Because only by looking at the commit hash nobody can tell which version the user was running in detail.
This wasn't possible any more after changing to a version number and appending the hash with a leading underscore like we do it now.
What will change with this Pull Request?
Wrap the name in brackets and make it clickable.
This will make GitHub detect it and hotlink it again!
Examples from
About
window:Other options don't get recognized by GitHub as well:
The name will update in all places where it shows up. Debug log and about window, NSIS installer, file name for build artifacts etc.
I preferred
[ ]
brackets and tried them first.Cmake shows it correctly, but it makes the artifact upload fail on appveyor with this message:
(https://ci.appveyor.com/project/Daenyth/cockatrice/build/2.4.1-branch-tooomm-custom_naming-build-804/job/copc9f5e2ixsqysj#L3353)
I think they look cleaner and separate better from the date which is in round brackets already:
"Version 2.4.1-custom[ac5fbe5] (2017-12-29)"
If somebody has a solution here, let me know!