v0.8.0-alpha.4

cue-lang/cue Pre-release Released

A release of CUE OSS · its page on GitHub

This 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.

All changes

17 changes since v0.8.0-alpha.3by area

cmd3

  • cmd/cuesupport --package flag when output is CUE@myitcv93acaa3
  • cmd/cuestop trying to set $HOME in script_test.go@mvdanff8d497
  • cmd/cueskip the logins.json authorizer if no file is found@mvdan32a72ae

cue3

  • cue/loadadd runnable example for external modules@rogpeppecc98a77
  • cuefix typos in the Hid function documentation@kharf723438a
  • cue/loadadd a runnable package example@mvdan5b4a581

internal3

  • internal/e2epartially revert using cue mod init modpath@version@mvdan94a444f
  • internal/parmove from internal/mod/internal/par@rogpepped1fba4f
  • internal/cifix reference to tool/file.RemoveAll@mvdand42ab3d

mod6

  • mod/modconfigfactor out from cmd/cue@rogpeppe59e6fd0
  • mod/...mark as experimental@rogpeppe3210353
  • mod/modcachemove from internal/mod/modcache@rogpeppe4232562
  • mod/modregistrymove from internal/mod/modregistry@rogpeppeaabff10
  • mod/modfilemove from internal/mod/modfile@rogpeppe8533c7d
  • mod/modulemove from internal/mod/module@rogpeppe2727766

Other2

  • tools/flowcheck and return errors from task values@nickfiggins9ef35eb
  • bump ociregistry module version@rogpeppe30cae5b

Downloads

Every file this release published on GitHub, with its SHA-256. Most people install CUE as Installing CUE describes, which also shows how to check a download.

Archives

PlatformFile and SHA-256
macOS, Intelcue_v0.8.0-alpha.4_darwin_amd64.tar.gz3fdac35923b7ed2379b6f6854e99e52b9b491978921294627a83050deaad9f56
macOS, Apple siliconcue_v0.8.0-alpha.4_darwin_arm64.tar.gz42901e60cacbcb420bd8ded67c02bdcb6c5b5db5637dbde5fdf2c9c5ef9ae155
Linux, x86-64cue_v0.8.0-alpha.4_linux_amd64.tar.gz5cad6829411fabc54ccf32cc4e4d9f0ba610bbe48746a0ed98c6a92249788efc
Linux, Arm64cue_v0.8.0-alpha.4_linux_arm64.tar.gzad761ce1ddf15c8d7cb94ca3e7ec6869a18aa97685c04996f724f9990651f08f
Windows, x86-64cue_v0.8.0-alpha.4_windows_amd64.zip3dd21d1b2550a32f17e2729928eb333c9e46e5356b816ad8e66cef5e601138d4
Windows, Arm64cue_v0.8.0-alpha.4_windows_arm64.zip3d357a57424f870421635396b40b485fa1a8268d78519b5da5955304d70346a3

SHA-256 checksums for all of these: checksums.txt

Install CUE