Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cargo-lock: fix V3 lockfile handling and tests
The `version` field was previously being completely ignored. This commit first fixes the tests so they run locally again (they were broken in #533 but due to a quirk of how CI runs, namely nuking the toplevel workspace Cargo.toml to support a 1.40 MSRV, they continued to pass in CI). It removes all previous dependencies on `cargo-lock` having a Cargo.lock file (kind of silly to use something that changes as a test vector) and replaces it with explicit V2 and V3 lockfile test vectors, which are now in a newly renamed `tests/examples` directory. Finally, it fixes parsing of V3 lockfiles, actually paying attention to the `version` field if present.
- Loading branch information
Showing
10 changed files
with
478 additions
and
5,076 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
File renamed without changes.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.