## update_mtime_for_generated_files

# Function update_mtime_for_generated_files

Source

    fn update_mtime_for_generated_files(pkg_root: &Path)

Expand description

Workaround for rust-lang/cargo#16237

Generated files should have the same deterministic mtime as other files. However, since we forgot to set mtime for those files when uploading, they always have older mtime (1973-11-29) that prevents zip from packing (requiring >1980)

This workaround updates mtime after we unpack the tarball at the destination.