Skip to content

Include git lightweight tags for version detection#58

Merged
epsilonrt merged 1 commit intoepsilonrt:masterfrom
git-developer:fix-version
Sep 25, 2024
Merged

Include git lightweight tags for version detection#58
epsilonrt merged 1 commit intoepsilonrt:masterfrom
git-developer:fix-version

Conversation

@git-developer
Copy link
Copy Markdown
Contributor

GitVersion.cmake uses git describe to detect the application version.

By default, Git reads only annotated tags. The git repo currently contains a few version tags, but they're all lighweight tags, none of them is annotated. Thus, the version detection fails and the resulting version (mbpoll -V) is always 1.0-0.

Git may be advised to handle lightweight tags by setting the argument --tags. This results in a proper version, e.g. 1.4-11 for the current master branch (1968de6).

@git-developer
Copy link
Copy Markdown
Contributor Author

@epsilonrt Do you see a chance to look at this PR?

@oori
Copy link
Copy Markdown
Contributor

oori commented Aug 9, 2024

@epsilonrt I ran into similar issue using -V for brew formula. Could you consider @git-developer PR ?

@epsilonrt epsilonrt merged commit 2e53bff into epsilonrt:master Sep 25, 2024
@oori
Copy link
Copy Markdown
Contributor

oori commented Oct 4, 2024

@epsilonrt Thanks. Probably a good time to push a new version tag (Eg. 1.5.3) for all the last pulled PRs to get picked up.

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.

3 participants