Imposible to determine creation time in local artifacts
Summary
Every artefact from an element build on 1st Jan 1070, so it is impossible to check which ones are old or new looking at the ".cache" directory. For example:
$ ls -ali ~/.cache/buildstream/artifacts/extract/baserock/initramfs-initramfs-scripts/
total 24
395282 drwxr-xr-x 6 levy levy 4096 Jun 1 14:35 .
130899 drwxr-xr-x 110 levy levy 4096 Jun 1 12:24 ..
134838 drwxr-xr-x 5 levy levy 4096 Jan 1 1970 15ca9afd1fc64910698b219cf7fba0fdf3d71cf4e49f950f675120cb628b6ccb
915716 drwxr-xr-x 5 levy levy 4096 Jan 1 1970 3d5b8716373e8ea2e1a03b71a0cb0ad1bc1d177af143192ac9dd7a953a0edb7c
915969 drwxr-xr-x 5 levy levy 4096 Jan 1 1970 567a2198d9bff5e168223ab48ecff9511a94ffe0de0b47d6f52084c6ee13276a
785632 drwxr-xr-x 5 levy levy 4096 Jan 1 1970 6e328d26fb8f637385a038186efe85bae15d1e75fb15570c98b352314be61351
Steps to reproduce
- Build one element.
- Force build the same element
- Check the .cache/buildstream artifacts/extract directory for that element and check that every artefact build on Jan 1 1970
What is the current bug behavior?
- See "Steps to reproduce"
What is the expected correct behavior?
- Artefacts from the same element should be listed on the machine time, not forced to be Jan 1 1970.
Relevant logs and/or screenshots
Possible fixes
Other relevant information
- BuildStream version affected: /milestone %BuildStream_v1.x
Edited by Francisco Redondo Marchena