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

version generation fails on shallow repositories #30

Open
Avus-c opened this issue Jan 13, 2025 · 0 comments
Open

version generation fails on shallow repositories #30

Avus-c opened this issue Jan 13, 2025 · 0 comments
Assignees

Comments

@Avus-c
Copy link
Collaborator

Avus-c commented Jan 13, 2025

When a repository is shallow-cloned, it may lack the tags associated with the current HEAD or its ancestor commits. This can lead to versioning issues, as the expected tags are unavailable.

Forcing a full clone is not a viable solution in all scenarios. Instead, the versioning logic should handle this gracefully by defaulting to a format such as 0.0.0-dev-<commit-hash>-<branch_name> when no relevant tags are found.

@Avus-c Avus-c self-assigned this Jan 25, 2025
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

No branches or pull requests

1 participant