v0.10.0-alpha.2

cue-lang/cue Pre-release Released

A release of CUE OSS · its page on GitHub

This release includes many fixes and enhancements, particularly for modules. It also starts requiring Go 1.22 or later, as Go 1.23.0 will be released very soon.

Modules

The cue help documentation for modules and inputs has been expanded, and a number of error messages when using or publishing modules are now more helpful.

A new concept guide on CUE language versions documents the language.version field in cue.mod/module.cue files.

CL 1198249 adds support for an @ignore file attribute to unconditionally ignore a file when loading packages or calculating dependencies.

CL 1198003 teaches the CUE loader to support symbolic links when loading from local directories, matching the behavior before CUE_EXPERIMENT=modules was introduced.

CL 1198143 tweaks cue mod init without an argument to create a module with the module path cue.example rather than an empty path that made the module file invalid.

Go API

CL 1198157 fixes cue/parser to accept keywords as valid selectors, aligning with the language specification.

All changes

33 changes since v0.10.0-alpha.1by area

cmd9

  • cmd/cueadd tests for symbolic links@rogpeppe23fc4b1
  • cmd/cue,internal/buildattradd tests for @ignore tags@rogpepped502843
  • cmd/cueuse default module name for cue mod init@rogpeppeb3c12b3
  • cmd/cueadd tests for module path errors@rogpeppef7e48bb
  • cmd/cueadd a reference to the Central Registry from cue help modules@rogpeppe8986233
  • cmd/cueadd information about import paths to cue help inputs@rogpeppee9bc377
  • cmd/cuefix panic on bad syntax@rogpeppeaf808c3
  • cmd/cuebetter error message for mismatched publish version@rogpeppeb513fc2
  • cmd/cueimprove error message for malformed module path@rogpeppe9a88d06

cue7

  • cueadd a regression test for a default elimination bug fixed in evalv3@myitcv97eeee4
  • cue/cmdensure flags are added if they are used@cuematthew657d5ec
  • cue/parseraccept keywords as selector@haoqixu682ff0e
  • cue/literaluse strconv.IsGraphic@mvdanacdd41f
  • cue/loadavoid one stat call when loading a valid module@mvdanefdb072
  • cue/loadadd test coverage for loading a legacy cue.mod file@mvdan28c6219
  • cueuse Value.Err in examples using Compile APIs@mvdan719893f

internal12

  • internal/buildattrimplement @ignore attributes@rogpeppee00557b
  • internal/ciensure internal/_e2e isn't broken in CI@mvdan00879f0
  • internal/ciensure commit messages do not @-mention users@mvdancf6641c
  • internal/cicopy how internal/vcs sets a clean env for git tests@mvdan9025f67
  • internal/_e2eremove unused import@mvdan6a9997f
  • internal/ci/checksrewrite from bash to Go@mvdan32013a7
  • internal/cimove commit check script to a separate file with tests@mvdandaf98a0
  • internal/vcsshow stderr when git exits with an error@mvdand0724a0
  • internal/mod/modimportsremove duplicate test txtar file entry@mvdan243da87
  • internal/mod/modpkgloadsymbolic links can be valid CUE files too@rogpeppef5b905c
  • internal/mod/modpkgloadpropagate CUE syntax error@rogpeppea36cc32
  • internalremove some deprecated type/method usages@cuematthewe1f552f

Other5

  • allmake use of some more Go 1.22 std APIs@mvdanaf83dad
  • drop go1.21, start testing on go1.23rc2@mvdan1aaf802
  • mod/moduleimprove error messages for bad module path@rogpeppe3e9d805
  • allreplace internal/txtarfs with txtar.FS@mvdane2054df
  • READMEpoint to cuelang.org for install docs@jpluscplusmf2066e3

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.10.0-alpha.2_darwin_amd64.tar.gz04d2b83938ebe5834050c3ef787de7ce3f663d16665c35a72fc31e5b8860e624
macOS, Apple siliconcue_v0.10.0-alpha.2_darwin_arm64.tar.gz65d84619b106280ff12f8b927e07e5bffa09318aef2609fd3c0b5e6bb1aea8ae
Linux, x86-64cue_v0.10.0-alpha.2_linux_amd64.tar.gze282656b320b18c5fe38d32243664e87ea9ee679ae64b1514c13d5f81beb006f
Linux, Arm64cue_v0.10.0-alpha.2_linux_arm64.tar.gzea49be55e61ff314cea334394fb80720e12d49f37201835991b112afcc1bd0ac
Windows, x86-64cue_v0.10.0-alpha.2_windows_amd64.zip32dc877e45c546e2e1b143f1429c0b8ce9b917f25a5158fef2156b631a61607d
Windows, Arm64cue_v0.10.0-alpha.2_windows_arm64.zip23851661d2e9a5dcc522a01e880ba2f96c309ea31b25e3aeff9f407a5d5ee380

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

Install CUE