v0.13.0-alpha.2
This release enables the new evalv3 evaluator by default, and introduces initial support for absolute packages.
Changes which may break some users are marked below with: ⚠️
Evaluator
⚠️ The new evaluator is now enabled by default, given that the majority of our test suite and projects in Unity are now working. While a few regressions remain, dozens of bugs are fixed by the new evaluator, and it already shows better performance by orders of magnitude on many projects.
The old evaluator is still accessible via CUE_EXPERIMENT=evalv3=0. If you encounter any errors or other problems, please file an issue with details.
For more information, see our new guide on upgrading from evalv2 to evalv3.
Closedness in evalv3 has been revisited to match the semantics of evalv2 much more closely, while at the same time reducing its overhead for larger configurations. This fixes most “field not allowed” regressions and improves the performance of some configurations by up to 2-5x.
cmd/cue
Initial support for absolute packages is introduced, which allow specifying a remote package at a particular version such as cue export foo.com/data@v1.2.3 or cue vet foo.com/schema@v1.2.3 -d '#schema' data.yaml.
cue get go no longer fails on Go strings containing certain character escape sequences or non-UTF8 bytes.
Encodings
Empty YAML files are now decoded as *null | _ rather than null, allowing them to be unified with struct schemas as if they were an empty struct.
All changes
104 changes since v0.13.0-alpha.1by area
cmd14
cmd/cuefix uphelp environmentwith new defaultscmd/cueprepare testscripts for evalv3 being on by defaultcmd/cueimport non-UTF8 Go string constants as CUE bytescmd/cueverify the JSON for equivalence in get_go_json_compatcmd/cuesupport more escape codes from Go string constantscmd/cueadd test case forget gowith string escape codescmd/cueadd a test case for loading an empty YAML filecmd/cuereject mod mirror without anything to docmd/cuetest mod mirror with no arguments nor --modcmd/cueupdate mod mirror help textcmd/cueskip mkRunE in the commandGroup wrappercmd/cueavoid confusing "unknown flag" errors in cue modcmd/cuededuplicate logic to implement command groupscmd/cueadd more test cases for unknown flags and commands
cue13
cueenable even more tests on evalv3 which pass nowcuere-enable tests on evalv3 which succeed nowcueadd test for issue 3826cueskip two tests failing on evalv3cue/interpreter/wasmskip tests on evalv3cue/testdataadd regression test for https://cuelang.org/issue/3688cue/testdataadd regression test for https://cuelang.org/issue/3672cue/loadsupport specifying an absolute packagecue/astadd a few ParseImportPath testscue/testdataadd regression test for https://cuelang.org/issue/3813cue/testdataadd regression test for https://cuelang.org/issue/3805cuemake Value.Default test for whether the vertex was default-ablecueMake Value.LookupPath work on patterns for evalv3
encoding3
encoding/jsonschemaadd debug test for external testsencoding/jsonschemamove debugging test to separate fileencoding/yamldecode empty YAML files as*null | _
internal69
internal/core/adtadd indirection in some casesinternal/core/adtfix deduping of pattern constraintsinternal/core/adtadd tests for Issue 3843internal/core/adtadd tests for Issue 3839internal/core/adtcorrect direction of equivalence setinternal/core/adtrewrite Environments for disjunctsinternal/core/adtadd tests for Issue 3825internal/core/adtremove "hole" logic and data structuresinternal/core/adtset isOuterStruct fieldinternal/core/adtsharpen criteriainternal/core/adtclean up "withinLet"internal/core/adtdrop overlayContext.generationinternal/core/adtdisable tests on evalv3 where they failinternal/core/adtfinalize in lookup in more casesinternal/core/adtadd tests for 3836 and 3838internal/core/adtsimplify representation of outer scopeinternal/core/adtreset embedding scopes for subfieldsinternal/core/adtadd tests for issue 3837internal/mod/modloadadd ResolveAbsolutePackageinternal/core/adtobey internal/core/cuedebug defaults in TestEvalinternal/mod/modpkgloadadd FindPackageLocationsinternal/filetypessupport richer versions in IsPackageinternal/cuedebugturn openinline off by defaultinternal/core/adtapply replacements from ancestorsinternal/core/adtset nested groupsinternal/core/adtcheck right Vertex for single-level closeinternal/core/adthoist newGroup logicinternal/core/adtadd tests for issue 3834internal/core/adtadd test for issue 3833internal/core/adtensure shared nodes are evaluated as per requestinternal/core/adtadd test for 3835internal/core/adtstop closing after enclosingEmbed has been activatedinternal/core/adtadd another test for issue 3826internal/core/adtfix cycle issueinternal/core/adtadd tests for issue 3827internal/core/adteagerly evaluate let upon lookupinternal/core/adtremove use of arcCCinternal/core/adtconditional typo checkinternal/core/adtdisable structure sharing for non-rooted valuesinternal/core/adtfix issue with nested letsinternal/core/adtadd tests for issue 3801internal/core/adtadd tests for 3832internal/core/adtmore thorough evaluation for scalar valuesinternal/core/adtadd tests for issue 3828internal/core/adtonly reset enclosingEmbed when usedinternal/core/adtadd tests for issue 3826internal/core/adtmove src check to typocheckinternal/core/adtadd test for issue 3824internal/core/adtadd test for issue 3819internal/core/adtcarry over more task types over disjunction boundariesinternal/core/adtadd tests for 3770internal/core/adtremove some unnecessary codeinternal/core/adthandle nested pending arcsinternal/core/adtadd tests for 3729internal/core/adtdo not finalize before arcs are processedinternal/core/adtadd test case for order of resolutioninternal/core/adtadd tests for 3780internal/core/adtadd test for evalv3 panicinternal/core/adtimplementation of flat dynamic closednessinternal/encoding/yamlattach a filename position to an empty file "null"internal/core/adtset label of current node in Unifyinternal/core/adtarguments are not closed in definitionsinternal/core/adtadd tests cases for new closednessinternal/core/adtadd tests for closing of arguments to validatorsinternal/core/adtadd tests for issue 3763internal/core/adtadd tests for issue 3784internal/core/adtfix update scalarinternal/core/adtadd test for issue 3633internal/cisimplify and improve clearing of all cache entries
Other5
- enable CUE_EXPERIMENT=evalv3 by default
mod/moduledeprecate ParseImportPathmod/modcacheimplement FetchFromCache- Revert "core/adt: Add ellipsis in struct to patterns"
core/adtAdd ellipsis in struct to patterns
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_0fa18e797bc796ba782b26a9b1105aa0a939a2f00686072cefd393ac79ff9d2f |
| macOS, Apple silicon | cue_36a9f10b1e2f9e7b89bb6ed0c9750dd2e1b88e941f0658158646a3fcd3f18231 |
| Linux, x86-64 | cue_65a2a7639d0601a1d2fdc6c3dcb193ddac72baa51137720865f27c4e7120b33f |
| Linux, Arm64 | cue_78c571a6de80adfe6dd4f0b1e1e96925db39c54d9f87be96c7fd8367e229f927 |
| Windows, x86-64 | cue_144e005501c582fe0b39e3d54af26c93894e4ce98a8d3e3b9c33f4b5d161c491 |
| Windows, Arm64 | cue_a436630d5652e0a69acb886de9393dc864c5a899b37e1fdd14909e69029207aa |
SHA-256 checksums for all of these: checksums.txt