cargo generate-lockfile
panicked when --offline
#13656
Labels
A-offline
Area: offline mode
C-bug
Category: bug
Command-generate-lockfile
regression-from-stable-to-nightly
Regression in nightly that previously worked in stable.
S-triage
Status: This issue is waiting on initial triage.
Problem
Got a panic when generating lockfile:
Backtrace
This was introduced in #13561
Steps
cargo new foo cd foo cargo add empty-library cargo +nightly generate-lockfile --offline
Possible Solution(s)
Hold the lock before querying registry even when
--offline
, since offline query still checks downloaded.crate
tarball while querying:cargo/src/cargo/sources/registry/index/mod.rs
Lines 486 to 502 in 5b2b1c0
Notes
No response
Version
The text was updated successfully, but these errors were encountered: