Skip to content

v0.10.0-alpha.2

Pre-release
Pre-release
Compare
Choose a tag to compare
@cueckoo cueckoo released this 24 Jul 11:52
· 557 commits to master since this release

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.

Full list of changes since v0.10.0-alpha.1
  • cmd/cue: add tests for symbolic links by @rogpeppe in 23fc4b1
  • internal/buildattr: implement @ignore attributes by @rogpeppe in e00557b
  • cmd/cue,internal/buildattr: add tests for @ignore tags by @rogpeppe in d502843
  • internal/ci: ensure internal/_e2e isn't broken in CI by @mvdan in 00879f0
  • internal/ci: ensure commit messages do not @-mention users by @mvdan in cf6641c
  • cue: add a regression test for a default elimination bug fixed in evalv3 by @myitcv in 97eeee4
  • internal/ci: copy how internal/vcs sets a clean env for git tests by @mvdan in 9025f67
  • internal/_e2e: remove unused import by @mvdan in 6a9997f
  • cue/cmd: ensure flags are added if they are used by @cuematthew in 657d5ec
  • internal/ci/checks: rewrite from bash to Go by @mvdan in 32013a7
  • internal/ci: move commit check script to a separate file with tests by @mvdan in daf98a0
  • all: make use of some more Go 1.22 std APIs by @mvdan in af83dad
  • drop go1.21, start testing on go1.23rc2 by @mvdan in 1aaf802
  • cmd/cue: use default module name for cue mod init by @rogpeppe in b3c12b3
  • mod/module: improve error messages for bad module path by @rogpeppe in 3e9d805
  • cmd/cue: add tests for module path errors by @rogpeppe in f7e48bb
  • cmd/cue: add a reference to the Central Registry from cue help modules by @rogpeppe in 8986233
  • cmd/cue: add information about import paths to cue help inputs by @rogpeppe in e9bc377
  • cue/parser: accept keywords as selector by @haoqixu in 682ff0e
  • all: replace internal/txtarfs with txtar.FS by @mvdan in e2054df
  • internal/vcs: show stderr when git exits with an error by @mvdan in d0724a0
  • internal/mod/modimports: remove duplicate test txtar file entry by @mvdan in 243da87
  • cue/literal: use strconv.IsGraphic by @mvdan in acdd41f
  • cue/load: avoid one stat call when loading a valid module by @mvdan in efdb072
  • cue/load: add test coverage for loading a legacy cue.mod file by @mvdan in 28c6219
  • internal/mod/modpkgload: symbolic links can be valid CUE files too by @rogpeppe in f5b905c
  • internal/mod/modpkgload: propagate CUE syntax error by @rogpeppe in a36cc32
  • cmd/cue: fix panic on bad syntax by @rogpeppe in af808c3
  • cmd/cue: better error message for mismatched publish version by @rogpeppe in b513fc2
  • cmd/cue: improve error message for malformed module path by @rogpeppe in 9a88d06
  • README: point to cuelang.org for install docs by @jpluscplusm in f2066e3
  • internal: remove some deprecated type/method usages by @cuematthew in e1f552f
  • cue: use Value.Err in examples using Compile APIs by @mvdan in 719893f