v0.10.0-alpha.2
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 linkscmd/cue,internal/buildattradd tests for@ignoretagscmd/cueuse default module name for cue mod initcmd/cueadd tests for module path errorscmd/cueadd a reference to the Central Registry fromcue help modulescmd/cueadd information about import paths tocue help inputscmd/cuefix panic on bad syntaxcmd/cuebetter error message for mismatched publish versioncmd/cueimprove error message for malformed module path
cue7
cueadd a regression test for a default elimination bug fixed in evalv3cue/cmdensure flags are added if they are usedcue/parseraccept keywords as selectorcue/literaluse strconv.IsGraphiccue/loadavoid one stat call when loading a valid modulecue/loadadd test coverage for loading a legacy cue.mod filecueuse Value.Err in examples using Compile APIs
internal12
internal/buildattrimplement@ignoreattributesinternal/ciensure internal/_e2e isn't broken in CIinternal/ciensure commit messages do not @-mention usersinternal/cicopy how internal/vcs sets a clean env for git testsinternal/_e2eremove unused importinternal/ci/checksrewrite from bash to Gointernal/cimove commit check script to a separate file with testsinternal/vcsshow stderr when git exits with an errorinternal/mod/modimportsremove duplicate test txtar file entryinternal/mod/modpkgloadsymbolic links can be valid CUE files toointernal/mod/modpkgloadpropagate CUE syntax errorinternalremove some deprecated type/method usages
Other5
allmake use of some more Go 1.22 std APIs- drop go1.21, start testing on go1.23rc2
mod/moduleimprove error messages for bad module pathallreplace internal/txtarfs with txtar.FSREADMEpoint to cuelang.org for install docs
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
| Platform | File and SHA-256 |
|---|---|
| macOS, Intel | cue_04d2b83938ebe5834050c3ef787de7ce3f663d16665c35a72fc31e5b8860e624 |
| macOS, Apple silicon | cue_65d84619b106280ff12f8b927e07e5bffa09318aef2609fd3c0b5e6bb1aea8ae |
| Linux, x86-64 | cue_e282656b320b18c5fe38d32243664e87ea9ee679ae64b1514c13d5f81beb006f |
| Linux, Arm64 | cue_ea49be55e61ff314cea334394fb80720e12d49f37201835991b112afcc1bd0ac |
| Windows, x86-64 | cue_32dc877e45c546e2e1b143f1429c0b8ce9b917f25a5158fef2156b631a61607d |
| Windows, Arm64 | cue_23851661d2e9a5dcc522a01e880ba2f96c309ea31b25e3aeff9f407a5d5ee380 |
SHA-256 checksums for all of these: checksums.txt