gorgeous-winter-99296
11/08/2023, 2:55 PMmtime intact in file ops in Pants? It's going to be necessary at some point for the Rust backend to scale properly. The caching on content works great until any file changes, at which point Cargo rebuilds everything because the sandbox has fresh mtimes.broad-processor-92400
11/08/2023, 6:52 PMgorgeous-winter-99296
11/08/2023, 6:54 PMgorgeous-winter-99296
11/08/2023, 6:54 PMbroad-processor-92400
11/08/2023, 6:59 PMgorgeous-winter-99296
11/08/2023, 7:04 PMbroad-processor-92400
11/08/2023, 10:30 PMgorgeous-winter-99296
11/08/2023, 10:37 PMbroad-processor-92400
11/08/2023, 10:41 PMaverage-vr-56795
11/08/2023, 11:30 PMaverage-vr-56795
11/08/2023, 11:32 PMproud-dentist-22844
11/09/2023, 12:20 AMmtime, I want to know, because I've been working on packaging via nFPM, and mtime handling is a big chunk of code (I have to prevent nFPM from using any mtime in the process sandbox by giving nFPM a list of every file saying what the mtime should be.)bitter-ability-32190
11/09/2023, 4:43 PMproud-dentist-22844
11/09/2023, 4:49 PMmtime field help text (emphasis on the part I think most relevant to this conversation):
Though nFPM supports pulling mtime from the src file or directory in most cases, the pants nfpm backend does not support this. Reading the mtime from the filesystem is problematic because Pants does not track the mtime of files and does not propagate any file mtime into the sandboxes. Reasons for this include: git does not track mtime, timestamps like mtime cause many issues for reproducible packaging builds, and reproducible builds are required for pants to provide its fine-grained caches.
See also: https://reproducible-builds.org/docs/timestamps/
gorgeous-winter-99296
11/09/2023, 5:34 PMgorgeous-winter-99296
11/09/2023, 5:35 PMgorgeous-winter-99296
11/09/2023, 5:35 PMbitter-ability-32190
11/09/2023, 5:36 PMbitter-ability-32190
11/09/2023, 5:36 PMgorgeous-winter-99296
11/09/2023, 5:37 PMbitter-ability-32190
11/09/2023, 5:38 PMproud-dentist-22844
11/09/2023, 5:48 PMproud-dentist-22844
11/09/2023, 5:49 PMgorgeous-winter-99296
11/09/2023, 5:50 PMproud-dentist-22844
11/09/2023, 5:52 PM