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 committed Dec 13, 2023
1 parent fd5544b commit aa6a257
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 @@ -662,6 +662,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 aa6a257

Please sign in to comment.