-
Notifications
You must be signed in to change notification settings - Fork 148
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
Optionally have set-version update Cargo.lock #698
Comments
Yes,. for all of A big question I've had is how all of this should interact with the global. args |
Yeah, that makes sense. I think that in the scenario where you're only interested in changing the crate's own version it would be beneficial to treat all the other crate dependencies as locked. Specifically, I'm thinking about this scenario:
This scenario should either fail or just update the version in both Cargo.toml/Cargo.lock, but it shouldn't also attempt to bump the stale crate dependencies versions in the Cargo.lock. On the other hand, with tl;dr: I think there is some value in differentiating how Cargo.lock is updated between |
It would also be nice to have this option in |
It would be useful in CI / automated publishing scenarios to have
cargo set-version ...
optionally (e.g. with a flag) able to bump the version in Cargo.lock.Currently we're relying on subsequent commands (e.g.
cargo check
) in our workflow to bump the version in Cargo.lock, but this means that we can't run these commands with--locked
.The text was updated successfully, but these errors were encountered: