v0.13.0
This release finally enables the new evaluator by default – the culmination of over a year’s worth of work!
It also packs in lots of new features, such as support for absolute module packages, dozens of JSON Schema improvements, and a new experimental XML encoding.
Changes which may break some users are marked below with: ⚠️
Evaluator
The new evaluator first introduced in v0.9.0 via CUE_EXPERIMENT=evalv3 is now enabled by default! There are no remaining substantial regressions in our test suite, and the Unity corpus is almost entirely working now. Given that the new evaluator fixes dozens of bugs for many users, and is already significantly faster for the majority of CUE users, we believe it is time to turn it on by default.
We will continue to track any remaining issues for the new evaluator via the evalv3 label. If you encounter any regressions, please file a bug report. You can also revert to the old evaluator to temporarily work around bugs via CUE_EXPERIMENT=evalv3=0. See this FAQ page for more information.
We aim to resolve many of these remaining bugs in an upcoming v0.13.1 bugfix release.
An entirely new algorithm for cue trim and tools/trim has been implemented for evalv3, which resolves all known bugs when trimming CUE.
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 5x. As a result, CUE_DEBUG=openinline is now removed as it is unnecessary.
Performance work for the new evaluator is ongoing; a number of changes in this release led to performance improvements of between 5% and 80% for a variety of projects. For more details, see Marcel’s performance update last month.
⚠️ The new topological sort algorithm for field ordering has been tweaked to avoid becoming too slow in some cases. This may result in some ordering changes, but we expect them to be relatively small. See the change for more details.
The parser now correctly allows keywords as required field labels, such as if!: _, fixing a discrepancy with the spec.
Filenames beginning with a dot can now be embedded as long as the glob pattern uses an explicit dot, such as @embed(glob="dir/.data_*.json").
⚠️ @embed(glob="pattern...") directives whose file globbing results in zero files now result in an error, to avoid situations where a glob pattern silently stops working as intended.
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 without requiring a CUE module file locally.
The cue help filetypes logic, written itself in CUE, no longer requires using the evaluator to parse CLI arguments or load CUE packages. This results in significant speed-ups when using the CLI with many inputs.
The new cue refactor imports command rewrites import paths, making it easy to migrate between module locations and major versions.
The new cue mod mirror command copies modules from one registry to another.
cue mod tidy now preserves the top-level custom field as intended.
Hidden files, and files with build tags, should now be correctly filtered when loading a single CUE package.
cue get go should no longer attempt to import types from the Go standard library as CUE, which caused errors.
cue get go no longer fails on Go strings containing certain character escape sequences or non-UTF8 bytes.
cue get go now interprets Go fields with the new json:",omitzero" struct tag as CUE optional fields.
cue cmd now fails if no tasks were actually defined, to avoid situations where a user is misled into thinking a task was defined when it was not.
Encodings
The XML “Koala” encoding proposed in February is now available via an experimental implementation. Try it out via the CLI like cue export xml+koala: data.xml, or via its Go API.
The encoding/jsonschema package gains better support for Kubernetes schemas (CRDs and the core API) although these improvements are as yet only available via the Go API.
⚠️ The JSON Schema decoder now imports schema descriptions as CUE doc comments, which required a change to encoding/jsonschema.Config.DefineSchema.
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.
cue exp gengotypes now allows control over how to generate optional CUE fields via e.g. @(,optional=nullable), where the default now is not to use pointers.
⚠️ cue exp gengotypes tweaks how it parses @(,type=) options to support composite types such as slices and maps. Note that this means package paths with slashes must be quoted now.
Builtins
⚠️ The uuid.ToString function is removed, given that it never did anything useful and could mislead users into thinking it did.
tool/http gained a followRedirects option to let the user disable HTTP redirection.
Go API
⚠️ CUE_EXPERIMENT=decodeint64 can no longer be disabled as we consider the experiment finished, having been introduced in CUE v0.11.0.
⚠️ The long-deprecated cue.Runtime methods Parse, FromExpr, CompileFile, and CompileExpr are now removed.
cuecontext.EvalDefault still pointed to the old evaluator; it now correctly points to the new evaluator, and follows the CUE_EXPERIMENT=evalv3 flag just like cmd/cue and the rest of the Go API.
Mirroring cuecontext.EvalExperiment, the new cuecontext.EvalStable constant is added to track the latest stable version of the evaluator.
module.SplitPathVersion and module.ParseImportPath have been deprecated in favor of cue/ast.SplitPackageVersion and cue/ast.ParseImportPath package to consolidate the API.
The new mod/modfile.File.ModuleForImportPath function allows resolving a module and default major version for a package without consulting a registry.
The new mod/modregistry.Client.Mirror method implements the logic behind the new cue mod mirror command.
The new mod/module.Version.Compare method is added in favor of module.Sort, which is now deprecated.
All changes
445 changes since v0.12.0by area
all12
allcue fmtallclean up a number of txtar test skipsalldo not use Default/Dev/Experiment evaluator versions in testsallstart making more use of strings.Cutallunconvert -apply ./...alluse a few more newer std APIsallstart using slices.Backwardalluse more maps and slices APIs from Go 1.23allGODEBUG=gotypesalias=1 is on as of go1.23.0allstart using maps and slices APIs from Go 1.23alluse eval.NewContext when possiblealluse ast.ParseImportPath and ast.ImportPath
cmd58
cmd/cuestop creating cue.mod/pkg and cue.mod/usr incue mod initcmd/cueadd CUE_EXPERIMENT=cmdreferencepkgcmd/cueadd testscript showing input unmarshal behavior withcue cmdcmd/cuedocument that embedding is limited to files in the same modulecmd/cueupdate which experiments are on by defaultcmd/cuetest the "found packages $X and $Y in $DIR" error messagecmd/cuedon't use os.Getwd at init timecmd/cuemove CUE_DEBUG_PARSER_TRACE to CUE_DEBUG=parsertracecmd/cueadd testscript for CUE_DEBUG_PARSER_TRACEcmd/cueadd more gengotypes test cases for optional=nillablecmd/cueadd a testscript for --inject-varscmd/cueadd testscript to ensure we report unused importscmd/cuemention vet-c's three behaviourscmd/cuefix up xml+koala testscript to actually test stdincmd/cuetest that gengotypes keeps top-level definition docscmd/cueadd gengotypes test cases for the optional attribute optioncmd/cueadd CUE_BENCH to benchmark CLI invocations with Go allocscmd/cue/cmdadd test case for embedding a pattern with an explicit dot filecmd/cueerror on useless commandscmd/cueremove test files related to old old closednesscmd/cueconvert examples to 'cue vet -c'cmd/cuego getGo fields with the json omitempty tag as optionalcmd/cueaddget gotest case with the new omitzero json tagcmd/cueactually update the _gen.go.want gengotypes testscript filescmd/cuewire up xml+koala via encoding/xml/koalacmd/cuere-enablecue exp gengotypestestscriptcmd/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 commandscmd/cuemention --inject-vars/-T flag for injection helpcmd/cue, internal/mod/modimportsadd test cases for issue 3795cmd/cueadjust the detection of Go standard library packagescmd/cueactually drop unsupported Go std types inget gocmd/cueadd testscript reproducing get go issues with std packagescmd/cuefix refactor imports over multiple modulescmd/cue/cmdshow incorrect handling of binary files when embeddedcmd/cuestop marking the login command as experimentalcmd/cueembed support is no longer experimentalcmd/cue/cmdadd test for edge casecmd/cuedon't truncate refactor-imports help textcmd/cueupdate workflow command help text linkscmd/cueimprove CUE example for exp-gengotypescmd/cuemention -c=false in vet's incomplete errorcmd/cueadd experimental warning to gengotypescmd/cueimplement mod mirrorcmd/cueaddrefactor importscommandcmd/cuefix typos in cue-help-filetypes
core5
core/adtAdd ellipsis in struct to patternscore/toposortstop trying to order structinfos/structlitscore/toposortDo not calculate cycles within an SCCcore/adtcorrect copying of conjuncts in stripNonDefaultscore/adtCombine Vertex.Structs when inserting Conjunct for evalv3
cue52
cue/testdataadd a regression test for #3570cuefix path representation for shared nodescue/formatport format tests to cuetxtarcue/buildstandardise on using the Context's loadercue/testdataadd test cases for #3924cue/loadmake MultiplePackageError support relative dir pathscue/testdataadd regression test for issue 2310cue/errorsuse slices.CompactFunc to deduplicate errorscue/errorsprint relative positions when used as arguments toocue/testdataadd regression tests for issue 2337cue/testdataadd a regression test for issue 2241cue/testdataadd a regression test for issue 2229cue/testdataadd regression test for issue 1867cue/testdataremove resolve/002.txtarcue/testdataadd regression test for issue 2209cue/testdataadd a regression test for issue 1640cue/testdataadd a regression test for issue 2526cuefix two godoc linkscue/formatadd test case for formatting empty and near-empty filescue/ast/astutilrefactor walkVisitor awaycue/interpreter/embedfix "glob" typocue/interpreter/embedfail when glob pattern has no matchescue/cuecontextfix EvalDefault to follow the default, add EvalStablecue/cuecontextexpand TestEvalVersion to test more combinationscue/cuecontextevalv3 is no longer experimentalcuedo not unify "accept" schema with result in UnifyAcceptcueprepare TestConjunctDedup for more casescueuse fmt instead of MarhalJSON in TestUnifyAcceptcueadd missing finalizationcueenable 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 evalv3cue/loadrespect build tags when determining packagecue/loaduse iterator rangecue/parserallowifas a label for a required fieldcue/interpreter/embedremove obsolete TODOscue/parserallowforas label for required fieldcuetweak cue.Value.Decode with Go std changescue/testdataadd a benchmark test for https://cuelang.org/issue/3514cueadd tests for Unifycue/astproperly deprecate Optional and Token in Fieldscueremove more long-deprecated APIs
encoding32
encoding/jsonclarify how to encode a cue.Value to JSONencoding/jsonschemafix x-kubernetes-group-version-kindencoding/jsonschemarecognize date-time tooencoding/jsonschemaupdate format supportencoding/jsonschemaadd numeric format to CRD testencoding/jsonschemaavoid adding unnecessary ellipsesencoding/jsonschemaimplement x-kubernetes-group-version-kindencoding/jsonschemaadd VersionKubernetesAPIencoding/jsonschemaCRD metadata field is not requiredencoding/jsonschemaCRDs always define resourcesencoding/jsonschemaadd metadata field to CRD test caseencoding/openapiadd regression test for issue 1643encoding/xml/koalaupdate koala header commentsencoding/jsonschemafix the tests on Go tipencoding/jsonschemaadd OpenOnlyWhenExplicit optionencoding/xml/koalaintroduce the first experimental XML encoderencoding/jsonschemaclean up TestExtXencoding/jsonschemaadd debug test for external testsencoding/jsonschemamove debugging test to separate fileencoding/yamldecode empty YAML files as*null | _encoding/jsonschemasupport x-kubernetes-embedded-resourceencoding/jsonschemainitial support for Kubernetes CRDsencoding/jsonschemadelete code for Go 1.22encoding/jsonschemasupport single schema not at rootencoding/openapiconvert remaining cue->json tests to txtarencoding/openapiconvert test suite to txtarencoding/jsonschemapass comments to DefineSchemaencoding/jsonschemapass comments to DefineSchemaencoding/jsonschemabetter placement of jsonschema attributeencoding/jsonschemaadd test case for if/then/else with $idencoding/openapiswap sort.Slice for slices.Sortencoding/jsonschemause a cmp-based stable sort when decoding constraints
internal248
internal/cibump the pinned Go version for releasesinternal/encoding/yamldrop use of kr/pretty in a testinternal/core/adtprevent superfluous circular referenceinternal/core/adtadd tests for Issue 3941internal/core/adtallow sharing of letsinternal/core/adtadd tests for Issue 3938internal/core/adttreat for loop values as non-cyclicinternal/core/adtrelax inline cyclesinternal/core/adtdisable setting Inline for evalv3internal/core/adtadd tests for 3903internal/core/adtrewrite comprehension structs for disjunctsinternal/core/adtdereference overlayinternal/core/adtadd tests for Issue 3935internal/core/adtmark conjunct for incomplete disjunctinternal/core/adtadd tests for 3934internal/core/adtpartial revert of fixes for 3919internal/core/adtadd tests for 3931internal/core/adtfix disjunction state managementinternal/core/adtadd tests for Issue 3925 and 3905internal/core/adtavoid finalizing too earlyinternal/core/adtadd tests for issue 3919internal/filetypesremove version from TODOinternal/core/adtfix some embedding issues with closednessinternal/core/adtadd tests for 3921internal/encoding/gotypeshandle cyclic types out of the boxinternal/core/adtcarry over enclosing scopeinternal/core/adtadd tests for 3920internal/core/adtupdate environment for disjunctionsinternal/core/adtadd tests for issue 3891internal/golangorgxcuelsp: load cueinternal/golangorgxcuelsp: remove Go-specific analysisinternal/core/adthandle vertices properly for comprehensions spanning disjunctionsinternal/core/adtadd tests for issue 3899internal/cueexperimentphase out DecodeInt64internal/encoding/gotypesimplement optional=nillableinternal/encoding/gotypesparse type options as Go expressionsinternal/filetypesremove dependency on CUE evaluatorinternal/filetypesgenerate FromFileinternal/filetypesgenerate toFile implementationinternal/filetypes/internal/genfuncCUE to Go translationinternal/filetypes/internal/genfuncCUE expression simplificationinternal/filetypes/internal/genstructnew packageinternal/filetypesremove special casesinternal/core/adtallow stack-based unrolling of blockinginternal/core/adtadd tests for 3899internal/ci/goreleaseradjust after evalv3 fix for #3908internal/core/adtfix default handlinginternal/core/runtimevalidate imports in package-less files toointernal/cuetxtarsupport matrix name skips like #skip-v2internal/golangorgxstub out gcimporterinternal/golangorgxdrop testenv APIs we won't needinternal/golangorgxremove the goroot packageinternal/golangorgxremove the aliases packageinternal/golangorgxremove refactor/inlineinternal/golangorgxdrop util/slices in favor of slicesinternal/encoding/gotypesdon't drop docs for top-level definitionsinternal/filetypesstrict separation of tags vs subsidiary tags logicinternal/filetypesregularize Defaultinternal/filetypesclarify FromFileinternal/filetypesrefactor parseType to parseScopeinternal/filetypesadd evaluator mutexinternal/filetypesconsolidationinternal/encoding/gotypesanalyze all CUE definitions firstinternal/encoding/gotypescontrol optional types via attributesinternal/encoding/gotypeshandle quoted CUE fields correctlyinternal/core/adtfix expression comments in SimplifyBoundsinternal/core/adtavoid apd.Decimal errors in SimplifyBoundsinternal/core/adtreuse a slice to make copies of the required reqSetsinternal/ciflip to using the official curated cue.dev schemasinternal/golangorgxcuelsp: view definitions for cueinternal/cibump Go and goreleaser for the next alpha releaseinternal/golangorgxcuelsp: remove unneeded codeinternal/core/adtcache reqSets in nodeContextinternal/core/adtadd benchmark for 3881internal/core/adtadd stats for new closedness algointernal/core/adtfix Vertex dereferencing for disjunctionsinternal/core/adtadd tests for 3850 and 3875internal/core/adtfix test namesinternal/core/topsortprevent duplicates in nodeToStructMetainternal/core/adtremove unused nodeContext fieldsinternal/core/adtshow correct path for incomplete valuesinternal/core/adtskip work in checkTypos when a vertex has no arcsinternal/core/adtreuse a local buffer in checkTyposinternal/golangorgx/goplsUse the correct error.internal/core/adtavoid more allocations when LogEval is disabledinternal/core/adtremove unused code low-hanging fruitinternal/golangorgx/goplsGet cue lsp to initialize with emacs lspinternal/core/adtdo not activate ids for non-definitionsinternal/core/adtadd tests for 3858internal/core/adtreuse reqSets slices via OpContextinternal/core/adtprevent logging overhead when disabledinternal/cuedebugdrop openinline flaginternal/encoding/yamlsupport alias to scalars as map keysinternal/encoding/gotypesgenerate valid json tags for quoted fieldsinternal/mod/modloadpreserve custom struct in module when tidying requirementsinternal/core/runtimeselect evaluator version with specific constantsinternal/core/adtfix disjunction corruption issueinternal/core/adtfix panic due to envDisjunct corruptioninternal/core/adtdisable structure sharing for pending arcsinternal/core/adtadd tests for Issue 3849internal/core/adtremove insertArcCCinternal/core/adtinline structs in schema are not closed by defaultinternal/core/adtadd test for Issue 3853internal/core/adtsupport Ellipsis in MatchAndInsertinternal/core/adteliminate recursive processing on bottominternal/core/adtadd test for Issue 3851internal/core/adtadd missing dereferenceinternal/tdtestsupport cuetest.Runinternal/cisimplify login to Central Registryinternal/core/adtremove diff/todo for fixed issuesinternal/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 entriesinternal/mod/modimportsexclude hidden CUE filesinternal/ciupdate Go and goreleaserinternal/cuetxtarAppend \n to generated txtar file contentinternal/_e2eremove unused CUE_REGISTRY_TOKEN env varinternal/core/adtfix counter issueinternal/core/adtfix edge case in structural cycles with structure sharinginternal/core/adtfix structural cycle stack overflowinternal/core/adtremove Inline checkinternal/core/adtmake inline expressions addressableinternal/core/adtdo not hasNonCycle in one caseinternal/core/adtrefactor unifyNodeinternal/core/adtadd tests for issue 3634internal/encodingdon't interpret files as UTF8 with the binary encodinginternal/core/adtpropagate default marker in single nested valueinternal/core/adtadd tests for issue 3779internal/core/adtfix FromDefinternal/core/adtshorten closeContext graph depthinternal/vcsuse os.CopyFS from Go 1.23internal/core/adtremove unnecessary clearing of CloseInfointernal/core/adthoist feature checking logicinternal/core/adtdo not add arc dependencies for some nodesinternal/core/adtprepare for shortening rootinternal/core/adtadd test for closeContext graph shorteninginternal/core/adtsimplify ellipsis logicinternal/core/adtfix bug when merging closing struct with ellipsisinternal/core/adtadd test for issue 3778internal/core/adtbring semantics of top in line with v2internal/core/adtfix yield unwinding issue for validatorsinternal/core/adtadd tests for 3762internal/core/adtfix consistency issue for disjunctionsinternal/core/adtadd tests for 3124internal/core/adtremove diff/todo/p1internal/core/adtimprove reference cycle behaviorinternal/core/adtexplicitly detect cycle errorinternal/core/adtput blocking queue on stackinternal/core/adtadd tests for 3669 and 3737internal/core/adtdisable nodeContext.freeinternal/core/adtprune recursive processinginternal/core/adtremove noop counterinternal/core/adtlogging improvementsinternal/core/adtpass and use OpContext to functions using Schemainternal/encoding/yamluse adt.Unify instead of Value.Unifyinternal/core/adtavoid crashinternal/core/adtmove cycle state saving logic to Exprinternal/valuesupport more types and rename ConvertToContextinternal/core/adtadd Expr method on CallContextinternal/core/adtrecursively resolve pending arcs before lookupinternal/core/adtadd test for issue 3708internal/core/adtremove GroupUnify mechanisminternal/core/adtdo not carry forward FromEmbedinternal/core/adtdo not carry forward FromDef flaginternal/core/adtuse adt.Unify in cue packageinternal/envflagsmall follow-ups to int and string supportinternal/core/adtfix handling of topinternal/envflagsupport int and string flagsinternal/envflagskip over empty comma-separated elementsinternal/core/adtpass CallContext to builtin functionsinternal/core/adtfirst step in using CallContextinternal/core/adtfix hang on finalizationinternal/core/adtprevent recursion in callsinternal/core/adtdo not count validators as new datainternal/core/adtfix some cycle issues related to validatorsinternal/core/adtset the parent in UnifyValidatorinternal/core/adthoist unifyValidatorinternal/core/adtavoid cycle in debug outputinternal/core/adtadd tests for 3649internal/core/adtadd more error context in matchNinternal/cmd/cue-astadd support for ref and file-onlyinternal/cueversionbump LanguageVersion for v0.13
mod8
mod/moduledeprecate ParseImportPathmod/modcacheimplement FetchFromCachemod/moduleadd Version.Comparemod/modregistrytestmove from internal/registrytestmod/modregistryadd Mirrormod/modfileadd ModuleForImportPathmod/modfilemake it an error to have an empty module pathmod/moduleadd explicit test for package path with full version
pkg11
pkg/encoding/jsonfix validatorpkg/encoding/jsonadd tests for issue 3932pkgmake $id in tasks a reference to a hidden fieldpkg/listadd a regression test for issue 3416pkg/listadd regression test for issue 2594pkg/tool/httpallow configuration of following redirectspkg/uuidremove ToStringpkg/internal/builtintestremove "and X more errors" stripping for evalv3pkguse adt.Unify instead of Value.Unifypkg/encoding/jsonexpand implementation of Validate in placepkg/encoding/yamlhoist validate functionality
tools3
tools/flowmove CUE_DEBUG_TOOLS_FLOW=1 to CUE_DEBUG=toolsflow=1tools/trimimplement trim for evalv3tools/trimprepare for trimv3
Other16
- Revert "internal/core/adt: carry over enclosing scope"
interpreter/embedallow glob to match explicit dot files- update golang.org/x/... dependencies
- update pelletier/go-toml to drop testify
- update golang.org/x dependencies
- enable CUE_EXPERIMENT=evalv3 by default
- Revert "core/adt: Add ellipsis in struct to patterns"
- update golang.org/x dependencies
- update various dependencies unlikely to cause breakage
cue.moduse exp3 curated modules- Revert "encoding/jsonschema: pass comments to DefineSchema"
- require Go 1.23 or later, test and release with Go 1.24
- update emicklei/proto and protocolbuffers/txtpbfmt
ast/astutilmake Resolve aware of version suffixescue.modupgrade to latest GitHub actions curated moduleast/astutiladd test for resolving imports with major version suffix
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_a31d34e22a9c3082fbfaaa9a9b8ef92085b4cbd95090cc67efc2e4fb501e2030 |
| macOS, Apple silicon | cue_d70bcd278b8b20c78d550fa6a59da88b5fa65688ff3e8fc32a5aeec39aa4868a |
| Linux, x86-64 | cue_59ba96137da07cd2cdd2e17ec33af81f850126f022f25dd96516f0b42071b6a9 |
| Linux, Arm64 | cue_59dcf4af25bf872decb44e2a706d75f822b32bbd06e83252cd181a177957ad00 |
| Windows, x86-64 | cue_a17423528e176f984ae4778fe5c757955783985913a8e18d6ccc663eaf91c279 |
| Windows, Arm64 | cue_fef57df2265c9ce92426ea698c9bf38e053f6b579a5f7cf1b8963926252aac00 |
SHA-256 checksums for all of these: checksums.txt