v0.8.0-alpha.4
Pre-releaseThis release includes a number of fixes and improvements for the experimental support for CUE modules first released in v0.8.0-alpha.1
.
Thank you to @kharf, @mvdan, @myitcv, @nickfiggins, and @rogpeppe for contributing to this release!
Modules
The cue/load
package now supports loading CUE instances using the CUE Modules experiment, which was first added to cmd/cue
in v0.8.0-alpha.1
.
cue/load
supports the CUE Modules experiment out of the box with the environment variable CUE_EXPERIMENT=modules
. Alternatively, a custom registry and authorizer can be configured with the Config.Registry
field via the modconfig.NewRegistry
API.
We have also added new Go examples to the cue/load
package, including an example demonstrating the use of a CUE modules registry.
Other changes
CL 1177330 fixes a bug where some evaluation errors in tools/flow
and cue cmd
were omitted, causing unintended results.
CL 1177546 tweaks cmd/cue
so that it obeys the --package
flag when the output format is CUE.
Full list of changes since v0.8.0-alpha.3
- internal/e2e: partially revert using
cue mod init modpath@version
by @mvdan in 94a444f - cmd/cue: support --package flag when output is CUE by @myitcv in 93acaa3
- cue/load: add runnable example for external modules by @rogpeppe in cc98a77
- mod/modconfig: factor out from cmd/cue by @rogpeppe in 59e6fd0
- mod/...: mark as experimental by @rogpeppe in 3210353
- mod/modcache: move from internal/mod/modcache by @rogpeppe in 4232562
- internal/par: move from internal/mod/internal/par by @rogpeppe in d1fba4f
- mod/modregistry: move from internal/mod/modregistry by @rogpeppe in aabff10
- mod/modfile: move from internal/mod/modfile by @rogpeppe in 8533c7d
- mod/module: move from internal/mod/module by @rogpeppe in 2727766
- cue: fix typos in the Hid function documentation by @kharf in 723438a
- cue/load: add a runnable package example by @mvdan in 5b4a581
- internal/ci: fix reference to tool/file.RemoveAll by @mvdan in d42ab3d
- tools/flow: check and return errors from task values by @nickfiggins in 9ef35eb
- cmd/cue: stop trying to set $HOME in script_test.go by @mvdan in ff8d497
- cmd/cue: skip the logins.json authorizer if no file is found by @mvdan in 32a72ae
- bump ociregistry module version by @rogpeppe in 30cae5b