Skip to content

Commit

Permalink
Fix sdist error when VCS has dirty renamed files
Browse files Browse the repository at this point in the history
  • Loading branch information
messense committed Jul 8, 2021
1 parent 7f0dd70 commit b7c2836
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/source_distribution.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,12 +124,8 @@ fn add_crate_to_source_distribution(
// and https://github.com/PyO3/maturin/issues/449
if target == Path::new("Cargo.toml.orig") || target == Path::new("Cargo.toml") {
false
} else if target == Path::new(".cargo_vcs_info.json")
|| target == Path::new("Cargo.lock")
{
source.exists()
} else {
true
source.exists()
}
})
.collect();
Expand Down

0 comments on commit b7c2836

Please sign in to comment.