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

fix: version should retrieve from tags output #250

Merged
merged 1 commit into from
May 14, 2024

Conversation

msclock
Copy link
Collaborator

@msclock msclock commented May 14, 2024

We had retrieved versions from git describe outout cmake variable brefore, but it only is valid when using annotated tags. Now, switch to use CMAKE_PROJECT_GIT_COMMIT_TAG and CMAKE_PROJECT_GIT_COMMIT_TAG_REVISION to splice as the project version.

  • CMAKE_PROJECT_GIT_COMMIT_TAG means latet tag it exists.
  • CMAKE_PROJECT_GIT_COMMIT_TAG_REVISION means the number of commits since latest tag exists.

Signed-off-by: msclock <msclock@qq.com>
@msclock msclock changed the title fix: project version retrieve from wrong git describe output fix: version should retrieve from tags output May 14, 2024
Copy link

codecov bot commented May 14, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (f677e63) to head (0c60c5a).

Additional details and impacted files
@@            Coverage Diff            @@
##            master      #250   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            5         5           
  Lines           24        24           
=========================================
  Hits            24        24           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@msclock msclock merged commit 0a309fc into serious-scaffold:master May 14, 2024
33 checks passed
@serious-scaffold
Copy link
Contributor

🎉 This PR is included in version 1.4.42 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@msclock msclock deleted the version_retrieve branch May 14, 2024 03:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant