-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Old lock file format is never written anymore #8696
Comments
Fyi, This was changed by #8554. |
Note that it's only updating the lock file format when there is an underlying semantic change in the Cargo.lock, at least that's the idea. I understand your use case though, you have to use nightly. You could try using a pinned older nightly version, e.g. one one day before the PR #8554 was merged. |
We talked about this in the Cargo team meeting. I'm going to close, as I don't think we're going to add specific support for this. I would suggest if you want to continue using |
The third party |
Problem
It seems to no longer be possible to get the old lock file format written anymore. Running nightly toolchains which touch the file seem to update it causing me to have to nuke it (since we support and test older toolchains too).
This mainly affects my wish to test minimal versions where
-Z minimal-versions
forces it to use a newer toolchain which then blocks out testing with the older toolchain (to ensure compatibility).Steps
cargo +1.32.0 update
cargo +nightly update -Z minimal-versions
echo "Cargo.lock no longer works with 1.32"
Possible Solution(s)
Support a flag to write out the old lock file format. It used to be auto-detecting and not upgrade, but that changed at some point.
Notes
Output of
cargo version
:The text was updated successfully, but these errors were encountered: