Closed Nemo157 closed 3 years ago
Just to check I reproduced this again, to cause it to happen you must wait for a little while to let at least one file get downloaded and written, giving it ~9s gave me just metadata.json
:
> ls ~/.cache/cargo-supply-chain
metadata.json
Great find! Thanks!
This seems to happen because metadata.json
is the first thing in the tar archive, and it contains the timestamp.
I can see two ways to fix it:
I ran
cargo supply-chain update
, then realised I should probably check if there was an update to the tool itself first soctrl+c
ed the update. When I then rancargo supply-chain crates
it thinks that it has an up to date cache, but then has to individually fetch the data, and attempting to update again does nothing:I had to then force an update with
cargo supply-chain update --cache-max-age 1s
.