cmd/cue: wire up OCI authorization
This makes the cue command aware of authorization
conventions when talking to registries: specifically,
it will use the docker configuration file to find authorization
information.
We add test cases in cmd/cue for three different scenarios:
- a module that requires auth
- split-horizon modules requiring different auth for each
- when the auth file is corrupt.
Signed-off-by: Roger Peppe <rogpeppe@gmail.com>
Change-Id: Id85caa1796fe61729eef89d5e88ca57ceafa23b6
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1171747
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>