opam icon indicating copy to clipboard operation
opam copied to clipboard

Add a "trust cache" repository option

Open AltGr opened this issue 1 year ago • 2 comments
trafficstars

AltGr avatar May 29 '24 16:05 AltGr

This is an attempted quickfix for the automated repo cache at https://gitlab.ocamlpro.com/OCamlPro/opam-repository/-/tree/cached : the repository fetched from CI has git LFS handles for the cached files, but not the full files, so their hashes can't be recomputed.

AltGr avatar May 29 '24 16:05 AltGr

(it worked)

AltGr avatar May 29 '24 17:05 AltGr

The OCamlPro repo cache (https://gitlab.ocamlpro.com/OCamlPro/opam-repository/-/tree/cached) still needs this feature

AltGr avatar Jan 22 '25 14:01 AltGr

Sorry for the lack of feedback. We had discussed it in a meeting a while back and forgot to write the conclusion here. I personally think having this environment variable available for everyone is too dangerous. I think having an argument limited to opam admin cache would be just fine although i'm not sure what's the best API to have for this, maybe just a new ?unsafe_trust_cache:bool argument to fetch_from_cache would be enough

kit-ty-kate avatar Jan 23 '25 14:01 kit-ty-kate