v0.10.0-alpha.3
This release includes fixes to the evaluator and APIs as well as initial support for the TOML encoding.
Evaluator
CL 1198356 fixes a panic in the new evaluator relating to the new mechanism for tracking closedness information.
CL 1198566 fixes a performance regression introduced in CUE v0.6 where cue cmd and tools/flow became many times slower on some inputs.
CL 1198350 ensures that all interpreter errors, such as those from @embed attributes, include position information.
Encodings
Initial support for TOML is included in this release, including support in cmd/cue and an experimental Go package. See the issue tracker for remaining work in this space.
Builtins
CL 1198636 tweaks the existing path.Match and tool/file.Glob builtins to reject ** wildcard patterns as unsupported, to avoid confusion and allow future changes to their behavior. Note that this change may break uses of ** patterns, which behaved like *.
Go API
CL 1198555 adds a cue/load.Config.SkipImports option to avoid loading instances from import statements. This particularly helps cue fmt, where the loading caused unwanted slowness and unnecessary errors.
CL 1198686 fixes cue/load so that it no longer produces extra invalid packages when Config.Package was set to * and nested packages were loaded.
CL 1198351 fixes a bug in astutil.Sanitize where unused imports were not being fully removed from ast.File, causing errors in cue trim where all uses of an import were removed.
CL 1198494 speeds up the Path method on wrapped errors, which causes noticeable speed-ups in some edge cases.
All changes
25 changes since v0.10.0-alpha.2by area
cmd5
cmd/cuehook up encoding/toml for import and exportcmd/cueadd test case for embedded file errorcmd/cuedo not initialize cmd.Command twice incue cmdcmd/cuetest thatcue cmd --cpuprofileworkscmd/cuepoint "help get" text at CUE-specific cmd
cue6
cue/interpreter/embedforbid**via pkg/path.Matchcue/loaddo not create packages unnecessarily for files outside package directorycue/loadadd test case for issue 3306cue/loadimplement SkipImports modecue/errorsmake wrapped.Path faster by bypassing unnecessary reflectioncue/ast/astutilupdate ast.File.Imports properly in Sanitize
internal7
internal/core/adtuse a named vertexStatus constant rather than 0internal/core/depuse a new visitor.marked map when recursinginternal/core/runtimedo not hide positions in interpreter errorsinternal/cuetxtarCorrect nesting of testsinternal/cuetxtarBe noisier if DebugArchive is faultyinternal/core/walkClarify Visitor.Before documentationinternal/core/adtdo not require closeContext.group to be non-nil
Other7
pkgforbid**in path.Match and tool/file.Globpkgadd test cases for ** in file patterns or globsallmake use of the new slices.Clone and cmp.Or Go 1.22 APIsencoding/tomladd first implementation of an encodertools/flowadd test case for issue 2559tools/flowadd to task stats in the first initTasks callallstart using Go 1.22's loop var scoping and reflect.TypeFor
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_f99ebf2fd58352b27901f64f1b390e8529f52d6388ee0fb0728c0cc78bf88b66 |
| macOS, Apple silicon | cue_57b0b3e61158bd98ad40171ef3088cecf538ce5069c00200148d3217942e8593 |
| Linux, x86-64 | cue_0261cf1b23c2909a55ddd9fe6de9a7e3ef0ea75e859e924e07f2dacefca8a239 |
| Linux, Arm64 | cue_0749bb154b08941fc3e93b46b0272e5fef213c5b86142868b4f28ddbceffce21 |
| Windows, x86-64 | cue_9b7a69508bf804f8a548530ff33f75d32d3c130d89c2d65773067cdd5c7ae5c4 |
| Windows, Arm64 | cue_76f1a5b7ad15c116840e80470aae772ea19d49d405147f5e16ad7b24dd78d33b |
SHA-256 checksums for all of these: checksums.txt