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

cargo update --format-only #7496

Open
joshtriplett opened this issue Oct 9, 2019 · 1 comment
Open

cargo update --format-only #7496

joshtriplett opened this issue Oct 9, 2019 · 1 comment
Labels
A-lockfile Area: Cargo.lock issues C-feature-request Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted` Command-update S-needs-design Status: Needs someone to work further on the design for the feature or fix. NOT YET accepted.

Comments

@joshtriplett
Copy link
Member

For large updates to projects that haven't updated in a while, I'd love to have a --format-only option to cargo update, to only update the format of the lockfile (e.g. adding hashes to metadata or moving away from the old [root] section) without updating any dependencies. That would make it easier to logically separate substantive changes to dependencies from the format change.

@joshtriplett joshtriplett added the C-feature-request Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted` label Oct 9, 2019
@ehuss ehuss added Command-update A-lockfile Area: Cargo.lock issues labels Oct 10, 2019
@epage
Copy link
Contributor

epage commented Nov 2, 2023

I feel like we abuse cargo update into being a Cargo.lock editor (e.g. the --workspace flag). I wish we had a more dedicated command for it. If we felt ok moving forward with #4269, we could use cargo generate-lockfile.

@epage epage added the S-needs-design Status: Needs someone to work further on the design for the feature or fix. NOT YET accepted. label Nov 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-lockfile Area: Cargo.lock issues C-feature-request Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted` Command-update S-needs-design Status: Needs someone to work further on the design for the feature or fix. NOT YET accepted.
Projects
None yet
Development

No branches or pull requests

3 participants