v0.9.0-alpha.4

cue-lang/cue Pre-release Released

A release of CUE OSS · its page on GitHub

This release includes changes to the evaluator and modules experiments, as well as a number of other improvements and fixes.

Evaluator

Following the introduction of the new evaluator experiment in v0.8.0-alpha.2 via CUE_EXPERIMENT=evalv3, this release includes a number of fixes to known bugs in the new evaluator, as well as significant work towards supporting the new evaluator experiment via the Go API and not just cmd/cue.

Subscribe to the Performance umbrella issue for updates, and see the Evaluator Roadmap project for the planned work ahead.

Modules

CL 1194090 adds the --dryrun, --json, and --out flags to cue mod publish to inspect what would be published as part of a module version.

CL 1194106 adds the cue mod resolve command to show how a module path resolves to a registry in the form of an OCI reference.

As a reminder, the ongoing and planned work can be seen in the Modules Roadmap, and we continue to hold regular Modules feedback sessions.

Go API

CL 1193759 teaches cue/format to collapse empty lists and structs to a single line for consistent formatting.

Builtins

CL 1193690 fixes math.MultipleOf as it had an incorrect implementation which could easily return bad results.

cmd/cue

CL 1193778 adds a cue fmt --diff flag which displays diffs instead of updating files.

CL 1193934 improves cue fmt so that it does not write to files on disk which are already well formatted.

All changes

59 changes since v0.9.0-alpha.3by area

all3

  • allremove some unused code and other minor cleanups@mvdan6132343
  • alldon't use XXX strings unnecessarily@mvdan506a0e8
  • allprevent duplicate filenames in testscripts@jpluscplusma835fb5

cmd8

  • cmd/cuefail cue fmt if arg import path doesn't exist@NoamTDd9c5ae0
  • cmd/cuedocument -ldflags for local release builds@mvdanf9c2de9
  • cmd/cuenew "mod resolve" command@rogpeppe59a0d3c
  • cmd/cueadd dry run flag to cue mod publish@rogpeppe82bcda5
  • cmd/cueadd cue fmt --diff flag@NoamTDfcae10b
  • cmd/cueuse fmt --check in the fmt_multi testscript@mvdan68cd040
  • cmd/cueimprove stdin input handling in cue fmt --check@NoamTDf254cc3
  • cmd/cuemake cue fmt --check print files immediately@NoamTD9e121cb

cue23

  • cueadd regression test for issue 3042@mvdan612f1ae
  • cueremove TODO for TestExpr@mpvl21b0039
  • cueexempt test for DisallowCycle@mpvl1259cf9
  • cuefix some matrix tests@mpvld3ed229
  • cuefix Allows for new evaluator@mpvl6e48c0d
  • cueignore some tests for TestPos@mpvl71220e6
  • cueset DynamicLabel@mpvlfa3bf5f
  • cue/astmove WalkVisitor and Visitor to astutil and unexport them@mvdan05640c2
  • cue/astdon't walk comments twice@mvdanfd64550
  • cue/astimplement Visitor walking in terms of func walking@mvdan30f7d28
  • cue/astadd WalkVisitor to share with cue/ast/astutil@mvdanbf733fb
  • cuefix IsClosed for new evaluator@mpvl9cf30f1
  • cuefix default handling for new evaluator@mpvl4a8a873
  • cue/ast/astutilremove quoted identifiers remnant@mvdanb3f170a
  • cueallow a tests to run with a variety of options@mpvl548dd7c
  • cue/cmdalways write stdin to stdout in cue fmt@NoamTD70cc402
  • cuechange getInstance to getValue@mpvlebcf2f5
  • cue/tokenrelative positions apply before, not after, a token@mvdan1dda583
  • cue/cmdavoid overwriting formatted files in cue fmt@NoamTDfb9961a
  • cue/loadclean up some var names and code organization@NoamTD41063b7
  • cue/testdataupdate todos on various tests@mpvlde5d0cf
  • cue/mathadd tests for MultipleOf@NoamTD1f4927c
  • cue/formatcollapse empty structs/lists to single line@NoamTD53d5ab3

internal20

  • internal/core/adtdelay dereferencing in lookup@mpvl7dd29f1
  • internal/core/exporthandle ConjunctGroups@mpvl8935df9
  • internal/core/adtdisable dereference for new evaluator@mpvlaa42655
  • internal/core/adtmove and rename Indirect@mpvl759f26e
  • internal/core/adtfix missing dereference for equal@mpvlbc3e24c
  • internal/core/adtfix missing field error message@mpvlb6a2637
  • internal/cueversionconstruct pseudoversion when possible@rogpeppecaa1e98
  • internal/cueversionsplit language and module versions@rogpeppe2f90f54
  • internal/core/adtfix matchPattern@mpvl72ba528
  • internal/core/adtdo not dereference for newChildValue@mpvladea575
  • internal/core/adtdereference default@mpvl14e1ef2
  • internal/core/debugomit ConjunctGroups in compact mode@mpvlc6701b4
  • internal/core/adtenable matrix testing@mpvl8b6705c
  • internal/core/adtavoid loops in debug printing@mpvlbae8bbf
  • internal/core/adtclean up indirects and mark disjuncts@mpvl831374c
  • internal/core/adtavoid hang with let processing@mpvl382e4be
  • internal/core/adtintroduce new cycle detection mechanism@mpvlfb37710
  • internal/core/adtdo not share "inlined" structs@mpvl1711c14
  • internal/core/adtprevent cyclic printing@mpvl1860e39
  • internal/core/adtdisable panic with TODO@mpvl52c4c32

Other5

  • ast/astutiluse more generics to reduce duplication@mvdand696e44
  • mod/modfilebetter error message when disallowed field is used@rogpeppefdf75f5
  • encoding/protobufinclude annotations heading@jpluscplusm35af5a1
  • mod/modregistryallow RegistryResolver to return ErrRegistryNotFound@rogpeppe89ae7d7
  • pkg/mathfix MultipleOf algorithm@NoamTDc8cc462

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.9.0-alpha.4_darwin_amd64.tar.gzb078d82d0f27dd4e131957ea37b36f4f3b6fc3bcfd8b9a9aab84739829aed612
macOS, Apple siliconcue_v0.9.0-alpha.4_darwin_arm64.tar.gz598e5502a479e975e6863c00b82147697422c22e67ba4744b047eddc1ae645c0
Linux, x86-64cue_v0.9.0-alpha.4_linux_amd64.tar.gz90343e1b571ae2b78330058abd5aa1e26802adf1171a0bb9f2125a88667a424f
Linux, Arm64cue_v0.9.0-alpha.4_linux_arm64.tar.gz1c40fee2ed35d4b2740b11a6e02a2e8e3a566c7a46f04fa47e3f1958c095b226
Windows, x86-64cue_v0.9.0-alpha.4_windows_amd64.zip7900c4fd22e0045c437153a785ced9712304097bfea43f8b892ba77abc951ae1
Windows, Arm64cue_v0.9.0-alpha.4_windows_arm64.zip4f18e008bde80e34b1b6df61803f230e3d2253dffa20b4c2686c15f6763f95ae

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

Install CUE