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.
This commit is contained in:
konsti 2023-12-13 16:11:02 +01:00 committed by GitHub
parent 69581c03c3
commit 5c38825b93
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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(