v0.10.0-alpha.3

cue-lang/cue Pre-release Released

A release of CUE OSS · its page on GitHub

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 export@mvdan9b91188
  • cmd/cueadd test case for embedded file error@rogpeppebfcfff3
  • cmd/cuedo not initialize cmd.Command twice in cue cmd@mvdan3f84ba6
  • cmd/cuetest that cue cmd --cpuprofile works@mvdan17b3e52
  • cmd/cuepoint "help get" text at CUE-specific cmd@jpluscplusm5de5b42

cue6

  • cue/interpreter/embedforbid ** via pkg/path.Match@mvdan187fb1a
  • cue/loaddo not create packages unnecessarily for files outside package directory@rogpeppea4abb05
  • cue/loadadd test case for issue 3306@rogpeppef472fd2
  • cue/loadimplement SkipImports mode@rogpeppe88306e2
  • cue/errorsmake wrapped.Path faster by bypassing unnecessary reflection@mxeye68bd63
  • cue/ast/astutilupdate ast.File.Imports properly in Sanitize@mvdan8145bdd

internal7

  • internal/core/adtuse a named vertexStatus constant rather than 0@mvdan862fcf1
  • internal/core/depuse a new visitor.marked map when recursing@mvdan34739e9
  • internal/core/runtimedo not hide positions in interpreter errors@rogpeppef7b7aaf
  • internal/cuetxtarCorrect nesting of tests@cuematthewdc199f5
  • internal/cuetxtarBe noisier if DebugArchive is faulty@cuematthewb77c599
  • internal/core/walkClarify Visitor.Before documentation@cuematthewaa8e810
  • internal/core/adtdo not require closeContext.group to be non-nil@cuematthewc8f3cad

Other7

  • pkgforbid ** in path.Match and tool/file.Glob@mvdan987a85e
  • pkgadd test cases for ** in file patterns or globs@mvdan25bb3d4
  • allmake use of the new slices.Clone and cmp.Or Go 1.22 APIs@mvdan55d1cb1
  • encoding/tomladd first implementation of an encoder@mvdan54f2cce
  • tools/flowadd test case for issue 2559@mvdan51bf6f2
  • tools/flowadd to task stats in the first initTasks call@mvdanbc41b25
  • allstart using Go 1.22's loop var scoping and reflect.TypeFor@mvdan055405a

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.3_darwin_amd64.tar.gzf99ebf2fd58352b27901f64f1b390e8529f52d6388ee0fb0728c0cc78bf88b66
macOS, Apple siliconcue_v0.10.0-alpha.3_darwin_arm64.tar.gz57b0b3e61158bd98ad40171ef3088cecf538ce5069c00200148d3217942e8593
Linux, x86-64cue_v0.10.0-alpha.3_linux_amd64.tar.gz0261cf1b23c2909a55ddd9fe6de9a7e3ef0ea75e859e924e07f2dacefca8a239
Linux, Arm64cue_v0.10.0-alpha.3_linux_arm64.tar.gz0749bb154b08941fc3e93b46b0272e5fef213c5b86142868b4f28ddbceffce21
Windows, x86-64cue_v0.10.0-alpha.3_windows_amd64.zip9b7a69508bf804f8a548530ff33f75d32d3c130d89c2d65773067cdd5c7ae5c4
Windows, Arm64cue_v0.10.0-alpha.3_windows_arm64.zip76f1a5b7ad15c116840e80470aae772ea19d49d405147f5e16ad7b24dd78d33b

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

Install CUE