-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Provide ability to rollback a cargo update
#2065
Comments
I've always thought this was basically just |
Checking out doesn't work for libraries, since lock files are recommended to not be version controlled for them, and most people follow this advice (e.g. one is working on a lib, runs |
This could also be as simple as rotating the existing Cargo.lock to some type of versioned/dated in-place backup file. Anything that allows the user to go "oops; mv Cargo.$backup Cargo.lock; profit" |
Not if we still want this feature, since with #6371 we have Going to solicit feedback for a while if there are some situations cannot apply aforementioned workarounds. If not, I'll close this as "not planned" |
#5221 is about supporting resolving to a specific date which would be one way of resolving the use case in this issue. |
btw #8728 is resolved and we now recommend checking in lockfiles |
Make sense. Closing. If you have a reason to keep this open, please comment here. |
It's possible to a
cargo update
to fail/be suboptimal, e.g. #2064 or pick up a broken version of package, so it would be nice to be able to reset to a known working state (and then be more precise about the updates). Something likecargo update --reset
orcargo update --rollback
.This would presumably have to store a copy of the old
Cargo.lock
, in/path/to/project/.cargo
or with the global database. It would also be mainly focusing on library development, since theoretically all binaries will be version-controlling their Cargo.locks (although I'm sure not all will).Thoughts?
The text was updated successfully, but these errors were encountered: