Skip to content

Commit 8c92e88

Browse files
committed
Disable preserving mtimes on archives
These are just wasted syscalls for our purposes, no need to issue updates to the modification/creation/access times of files we unpack!
1 parent f4d1b77 commit 8c92e88

File tree

1 file changed

+1
-0
lines changed
  • src/cargo/sources/registry

1 file changed

+1
-0
lines changed

src/cargo/sources/registry/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -463,6 +463,7 @@ impl<'cfg> RegistrySource<'cfg> {
463463

464464
let gz = GzDecoder::new(tarball);
465465
let mut tar = Archive::new(gz);
466+
tar.set_preserve_mtime(false);
466467
let prefix = unpack_dir.file_name().unwrap();
467468
let parent = unpack_dir.parent().unwrap();
468469
for entry in tar.entries()? {

0 commit comments

Comments
 (0)