v0.9.0-alpha.4
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 cleanupsalldon't use XXX strings unnecessarilyallprevent duplicate filenames in testscripts
cmd8
cmd/cuefail cue fmt if arg import path doesn't existcmd/cuedocument -ldflags for local release buildscmd/cuenew "mod resolve" commandcmd/cueadd dry run flag to cue mod publishcmd/cueadd cue fmt --diff flagcmd/cueuse fmt --check in the fmt_multi testscriptcmd/cueimprove stdin input handling in cue fmt --checkcmd/cuemake cue fmt --check print files immediately
cue23
cueadd regression test for issue 3042cueremove TODO for TestExprcueexempt test for DisallowCyclecuefix some matrix testscuefix Allows for new evaluatorcueignore some tests for TestPoscueset DynamicLabelcue/astmove WalkVisitor and Visitor to astutil and unexport themcue/astdon't walk comments twicecue/astimplement Visitor walking in terms of func walkingcue/astadd WalkVisitor to share with cue/ast/astutilcuefix IsClosed for new evaluatorcuefix default handling for new evaluatorcue/ast/astutilremove quoted identifiers remnantcueallow a tests to run with a variety of optionscue/cmdalways write stdin to stdout in cue fmtcuechange getInstance to getValuecue/tokenrelative positions apply before, not after, a tokencue/cmdavoid overwriting formatted files in cue fmtcue/loadclean up some var names and code organizationcue/testdataupdate todos on various testscue/mathadd tests for MultipleOfcue/formatcollapse empty structs/lists to single line
internal20
internal/core/adtdelay dereferencing in lookupinternal/core/exporthandle ConjunctGroupsinternal/core/adtdisable dereference for new evaluatorinternal/core/adtmove and rename Indirectinternal/core/adtfix missing dereference for equalinternal/core/adtfix missing field error messageinternal/cueversionconstruct pseudoversion when possibleinternal/cueversionsplit language and module versionsinternal/core/adtfix matchPatterninternal/core/adtdo not dereference for newChildValueinternal/core/adtdereference defaultinternal/core/debugomit ConjunctGroups in compact modeinternal/core/adtenable matrix testinginternal/core/adtavoid loops in debug printinginternal/core/adtclean up indirects and mark disjunctsinternal/core/adtavoid hang with let processinginternal/core/adtintroduce new cycle detection mechanisminternal/core/adtdo not share "inlined" structsinternal/core/adtprevent cyclic printinginternal/core/adtdisable panic with TODO
Other5
ast/astutiluse more generics to reduce duplicationmod/modfilebetter error message when disallowed field is usedencoding/protobufinclude annotations headingmod/modregistryallow RegistryResolver to return ErrRegistryNotFoundpkg/mathfix MultipleOf algorithm
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_b078d82d0f27dd4e131957ea37b36f4f3b6fc3bcfd8b9a9aab84739829aed612 |
| macOS, Apple silicon | cue_598e5502a479e975e6863c00b82147697422c22e67ba4744b047eddc1ae645c0 |
| Linux, x86-64 | cue_90343e1b571ae2b78330058abd5aa1e26802adf1171a0bb9f2125a88667a424f |
| Linux, Arm64 | cue_1c40fee2ed35d4b2740b11a6e02a2e8e3a566c7a46f04fa47e3f1958c095b226 |
| Windows, x86-64 | cue_7900c4fd22e0045c437153a785ced9712304097bfea43f8b892ba77abc951ae1 |
| Windows, Arm64 | cue_4f18e008bde80e34b1b6df61803f230e3d2253dffa20b4c2686c15f6763f95ae |
SHA-256 checksums for all of these: checksums.txt