I have a cache in S3 that a CI process has been pushing derivations to. This bucket had a lifecycle policy set on it which caused it to delete files after 30 days, and now I am getting errors about certain .nar.xz
files being absent from the cache - not surprising, as they probably expired.
Now I have two problems:
- How can I repair the bucket’s idea of what derivations it contains? I assume there is some metadata in the bucket that’s now out-of-date, as a fresh CI runner will complain about missing
.nar.xz
files. - I would like to have some kind of expiration on old derivations so that the bucket doesn’t retain things forever. Is there a safe way to do this?