]> git.proxmox.com Git - cargo.git/commit - src/cargo/sources/path.rs
Include Cargo.lock in package checks.
authorEric Huss <eric@huss.org>
Wed, 17 Apr 2019 21:06:05 +0000 (14:06 -0700)
committerEric Huss <eric@huss.org>
Wed, 17 Apr 2019 21:06:05 +0000 (14:06 -0700)
commit7d202307cebba894a2c95e9a16b9f8e31b7501f2
tree838f67b72aa6301b45e9688aeca0047a21d1bfe4
parent8a30158919622ebf5c2d2fba0eeff89196fd587d
Include Cargo.lock in package checks.

This includes `Cargo.lock` in the git dirty check. It explicitly excludes
`Cargo.lock` as an untracked file, since it is not relevant for the dirty check;
it is only checked if it is committed to git.

This also adds `Cargo.lock` to the "did anything modify this" check during
verification. I don't see a reason to exclude it (particularly since ephemeral
workspaces do not save the lock file).

Also add "Archiving: Cargo.lock" to the verbose output.
src/cargo/core/package.rs
src/cargo/ops/cargo_package.rs
src/cargo/sources/path.rs
tests/testsuite/publish_lockfile.rs