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 git version mismatch logic with shallow clones #3006

Merged
merged 1 commit into from
Sep 19, 2024

Conversation

daljit46
Copy link
Member

The logic in FindVersion.cmake uses git describe to find the git commit and tags of the project. Previously, we were mistakenly aborting the configuration of the project when git describe returned an error. This PR fixes that by checking the version mismatch only if the parsing of the git tag and commit is successful. A warning is emitted otherwise.
Closes #3000

@daljit46 daljit46 self-assigned this Sep 18, 2024

This comment was marked as outdated.

Copy link

clang-tidy review says "All clean, LGTM! 👍"

@daljit46
Copy link
Member Author

@Lestropie Sometimes the binary tests for dirrotate fail on our CI. The failure doesn't seem to be deterministic because it doesn't always happen, but I have seen it also in other PRs.

@daljit46 daljit46 merged commit 2f3f28b into dev Sep 19, 2024
6 checks passed
@daljit46 daljit46 deleted the fix_git_shallow_version branch September 19, 2024 10:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant