-
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
--frozen
is not equivalent to specifying both --locked
and --offline
#15239
Comments
From my naive perspective, I would assume each of those calls should be updated for handling both That so many of these missed calls exists makes me wonder if something there is intentional and would be interested in hearing from someone with more background on when these were added for why they diverge. |
I would agree there is some messiness here due to evolution, I don't think it is intentional. The I suspect there is some way we can clean this up, though I'm not sure exactly how. It might be to audit the usages of the specific calls (like |
…15263) ### What does this PR try to resolve? Fixes #15239 This also makes `--frozen` be respected in more situations, including * `cargo add` * `cargo install` * Git fetches * HTTP registry access ### How should we test and review this PR? To prevent this from happening again, I removed `offline()` and `locked()` accessors. To maintain the quality of error messages, I added `offline_flag()` and `locked_flag()` that will pick up `--frozen`, if present. ### Additional information
Problem
This fails:
cargo install --path . --frozen
This works:
cargo install --path . --locked --offline
Steps
docker build -t myapp .
Possible Solution(s)
Specify both
--locked
and--offline
instead of--frozen
.Notes
Environment is Docker Desktop on WSL2
Version
The text was updated successfully, but these errors were encountered: