]> git.proxmox.com Git - cargo.git/commit
Prevent packaging a crate if any files are dirty
authorAlex Crichton <alex@alexcrichton.com>
Fri, 10 Jun 2016 13:43:34 +0000 (06:43 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Fri, 10 Jun 2016 14:18:01 +0000 (07:18 -0700)
commit088d14ad3d7e613ff0ee5f51f7302026bae7d34d
tree5a414d1f988a3f8b1a2fd60e731584a1240ed98e
parentb5479d90e493edd7059bcd662cb8edc602034697
Prevent packaging a crate if any files are dirty

This commit alters Cargo's behavior to prevent publishing a crate by default if
any files in that crate are determined to be dirty, that is either modified or
not part of the working tree.

This can prevent common mistakes like many listed in #2063, and subsequently...

Closes #2063
src/bin/package.rs
src/bin/publish.rs
src/cargo/ops/cargo_package.rs
src/cargo/ops/mod.rs
src/cargo/ops/registry.rs
tests/package.rs
tests/publish.rs