Skip to content

Commit

Permalink
Don't preserve tar mtime to work around tar-rs bug.
Browse files Browse the repository at this point in the history
Don't preserve mtime to work around alexcrichton/tar-rs#349 to fix #579.
  • Loading branch information
konstin authored and charliermarsh committed Dec 13, 2023
1 parent 69581c0 commit d39d603
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/puffin-build/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -689,6 +689,8 @@ fn extract_archive(sdist: &Path, extracted: &PathBuf) -> Result<PathBuf, Error>
{
// .tar.gz
let mut archive = Archive::new(GzDecoder::new(File::open(sdist)?));
// https://github.com/alexcrichton/tar-rs/issues/349
archive.set_preserve_mtime(false);
archive.unpack(extracted)?;
} else {
return Err(Error::UnsupportedArchiveType(
Expand Down

0 comments on commit d39d603

Please sign in to comment.