Skip to content

Commit

Permalink
Ignore sdist tar ball instead of error out
Browse files Browse the repository at this point in the history
Was added in #575
  • Loading branch information
messense committed Nov 10, 2022
1 parent ee86fd8 commit f3d31b7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/module_writer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -383,10 +383,11 @@ impl ModuleWriter for SDistWriter {
}
let target = target.as_ref();
if source == self.path {
bail!(
"Attempting to include the sdist output tarball {} into itself! Check 'cargo package --list' output.",
source.display()
eprintln!(
"⚠️ Warning: Attempting to include the sdist output tarball {} into itself! Check 'cargo package --list' output.",
source.display()
);
return Ok(());
}
if self.files.contains(target) {
// Ignore duplicate files
Expand Down

0 comments on commit f3d31b7

Please sign in to comment.