mirror of
https://github.com/astral-sh/uv.git
synced 2025-08-04 10:58:28 +00:00
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:
parent
69581c03c3
commit
5c38825b93
1 changed files with 2 additions and 0 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue