Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
internal/mod/modregistry: new package
Note: experimental feature. This provides a CUE-centric interface for fetching and putting modules to an OCI registry. The module-uploading API splits the checking and the uploading from one another so that the caller is free to implement more checks without needing to duplicate the checking work, while still giving good confidence that the basic checks have taken place. This adds three new dependencies to go.mod; one (ociregistry) is maintained by ourselves; the others are generally considered foundational to the OCI ecosystem, are small (<1000 lines), stable (they're maintained by the core OCI maintainers), and have minimal dependencies themselves: github.com/opencontainers/image-spec github.com/opencontainers/go-digest image-spec provides the core definition of the OCI manifest struct type. go-digest is depended on by that to provide the hashing defined by the spec. For #2330. Signed-off-by: Roger Peppe <[email protected]> Change-Id: I787085894f7191e24630bcf49775c713e593819e Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/557457 Reviewed-by: Daniel Martí <[email protected]> Reviewed-by: Paul Jolly <[email protected]> TryBot-Result: CUEcueckoo <[email protected]> Unity-Result: CUE porcuepine <[email protected]>
- Loading branch information