From d39d6036693e99feb8057eca01775e0038b19d7e Mon Sep 17 00:00:00 2001 From: konstin Date: Wed, 13 Dec 2023 12:08:21 +0100 Subject: [PATCH] Don't preserve tar mtime to work around tar-rs bug. Don't preserve mtime to work around https://github.com/alexcrichton/tar-rs/issues/349 to fix #579. --- crates/puffin-build/src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/puffin-build/src/lib.rs b/crates/puffin-build/src/lib.rs index 8bd1f45c711e..ee4570754c21 100644 --- a/crates/puffin-build/src/lib.rs +++ b/crates/puffin-build/src/lib.rs @@ -689,6 +689,8 @@ fn extract_archive(sdist: &Path, extracted: &PathBuf) -> Result { // .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(