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

Git tag and hash #60

Merged
merged 4 commits into from
Dec 21, 2023
Merged

Git tag and hash #60

merged 4 commits into from
Dec 21, 2023

Conversation

taysta
Copy link
Owner

@taysta taysta commented Dec 21, 2023

updating git tag and hash automatically upon building the binaries. there is an issue with the way the git tag is being generated in cmake.
if you clone the repo, the command that is being used: git describe --tag outputs:

latest

so this ends up being used as GAME_VERSION like so:

#define JK_VERSION EternalJK: latest

however, if you download the latest release, the JK_VERSION is actually:

#define JK_VERSION EternalJK: latest-22-g596ae40cc

so when cloning, its missing the amount of commits on top of the tagged objects and its missing the commit hash

$ git describe --tag --abbrev=0
latest
$ git rev-parse --short HEAD
c5d27eaea

then combine them so it becomes latest-c5d27eaea

@taysta taysta merged commit d7ddb06 into master Dec 21, 2023
15 checks passed
@taysta taysta deleted the git_tag_and_hash branch December 21, 2023 12:52
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.

2 participants