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

[Bug]: nsv will fail to calculate the next semantic version if running against a shallow clone on a monorepo project #188

Closed
1 task done
purpleclay opened this issue Nov 27, 2024 · 0 comments · Fixed by #190
Assignees
Labels
bug Something isn't working
Milestone

Comments

@purpleclay
Copy link
Owner

purpleclay commented Nov 27, 2024

What happened?

Ensure nsv detects whether the current git repository is a shallow clone. By default, it should automatically pull the entire commit history and all tags. Add a new CLI flag and environment variable that disables auto-fixing of a git clone and instead allows nsv to fail with the appropriate error message.

Steps to reproduce it

  1. Run nsv on a CI platform like GitLab that performs a shallow clone by default. Once the history reaches a specific size, the next calculated version will be incorrect (it will effectively reset if tags are missing).

Which version?

v0.10.1

Which operating system(s) are you using?

All

Code of Conduct

  • I agree to follow this project's Code of Conduct
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant