You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In a constrained CI environment where you want to make as little network call as possible, it would be nice to be able to setup a local opam cache using opam admin cache with a new argument --packages which, similarly to #5386, which would only download the necessary archives for the packages requested.
However while this ensures that no more download is going to happen when installing most packages, it is not true for all packages. For example if a package defined its url without a checksum or as a git source (examples for both can be found in ocaml-variants in opam-repository), the archive will still need to be re-downloaded since the cache only stores archives with known checksums.
Possible solution
On top of adding --packages to opam admin cache, it would be nice to include non-checksumed packages in the cache in a new directory structure like unverified/<pkg>/url/<archive> and unverified/<pkg>/extra-sources/<archives>. Then users would be able to fetch the unverified archives from the cache using a new option allow-unverified-cache (set to false by default of course)
The text was updated successfully, but these errors were encountered:
In the same vein it would be nice for opam admin cache to be able to take all the repositories currently set instead of the local directory, as a new argument.
Context
In a constrained CI environment where you want to make as little network call as possible, it would be nice to be able to setup a local opam cache using
opam admin cache
with a new argument--packages
which, similarly to #5386, which would only download the necessary archives for the packages requested.However while this ensures that no more download is going to happen when installing most packages, it is not true for all packages. For example if a package defined its
url
without a checksum or as a git source (examples for both can be found inocaml-variants
in opam-repository), the archive will still need to be re-downloaded since the cache only stores archives with known checksums.Possible solution
On top of adding
--packages
toopam admin cache
, it would be nice to include non-checksumed packages in the cache in a new directory structure likeunverified/<pkg>/url/<archive>
andunverified/<pkg>/extra-sources/<archives>
. Then users would be able to fetch the unverified archives from the cache using a new optionallow-unverified-cache
(set tofalse
by default of course)The text was updated successfully, but these errors were encountered: