Unable to parse lock file
jcholder-thoughtworks opened this issue · comments
Howdy! I get the following error when I try to run cargo instruments
(no arguments):
Failed failed to parse lock file at: /[redacted but correct]/Cargo.lock
.
The Cargo.lock
is freshly generated from a new project created a couple weeks ago.
cargo
version: cargo 1.42.0-nightly (9d32b7b01 2020-01-26)
.
rustc
version: rustc 1.42.0-nightly (3761dcd34 2020-01-28)
.
Environment: macOS Mojave 10.14.6.
Initial guess is that the cargo
crate in this crate needs to be updated to the current version, 0.42.0
.
Glad to provide additional info as needed. Thanks!
Heads up that cargo
versions 0.36.0
and higher have breaking changes to the API.
@jcholder-thoughtworks gotcha, thanks for opening the issue. To check my understanding, this is about the new lockfile format; the new cargo
can work with the old format, but old cargo
doesn't work with the new format?
Just want to make sure that updating cargo doesn't have any unintended consequences.
@jcholder-thoughtworks I've just pushed a patch would you like to try it out? You'll have to check it out locally and then do cargo install --force --path=.
(assuming this is executed from the source directory). If this is working for you, I'll do a crates.io release.