From 5c38825b93b7d469cf1f8c80a803a707baae9087 Mon Sep 17 00:00:00 2001 From: konsti Date: Wed, 13 Dec 2023 16:11:02 +0100 Subject: [PATCH] Don't preserve tar mtime to work around tar-rs bug. (#634) 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 8bd1f45c7..ee4570754 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(