Skip to content

Incrementing minor or major version does not clear lower version components. #11

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

Open
gwadej opened this issue Mar 8, 2024 · 1 comment

Comments

@gwadej
Copy link

gwadej commented Mar 8, 2024

I really like cargo-next as a way to update Cargo.toml version easily.

My one real problem is using the --minor option to update the minor component of the version does not reset the patch version to 0.

So, using cargo next --minor with a version of 0.3.7 gives 0.4.7 instead of the expected 0.4.0.

Of course, I checked the --major flag and found that the same problem exists there.

@gwadej
Copy link
Author

gwadej commented Mar 8, 2024

Added a PR with a fix: #12

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