v0.17.0
Changes which may break some users are marked below with: ⚠️
Language
The active try experiment renames the new fallback keyword, used with for comprehensions, to otherwise. fallback continues to be accepted for now, but is rewritten to the new form.
The active aliasv2 experiment now allows ~(X) as an alternative to ~X for the single postfix alias form. ~X is also rewritten as ~(X) for the sake of consistency and clarity.
Language versions v0.17.0 and later allow omitting commas in multi-line lists. Just like a newline after a struct field implies a comma, a newline after a list element now implies a comma as well.
Language versions v0.17.0 and later allow a newline or a comma before the closing bracket of an index expression, matching how lists and func arguments allow omitting trailing commas.
The language spec is tweaked to make $ a valid identifier, which was already allowed by the parser and evaluator.
⚠️ Support for the infix div, mod, quo, and rem operators has been removed. Since late 2020, these infix forms have been undocumented and rewritten by cue fix to the new function calls.
The new shortcircuit experiment
This release introduces the shortcircuit experiment, which changes the && and || operators to not evaluate the right operand if the left operand alone determines the result.
This matches the behavior already documented in the CUE spec and is consistent with most mainstream languages, but for the sake of a smooth transition for end users, we are rolling out this change via an experiment.
You can try this experiment via the @experiment(shortcircuit) file attribute. To mimic the old behavior with the experiment, you can use a hidden field:
_y: Y
if X && _y {}
Evaluator
Comprehensions
The comprehension algorithm now waits to run a comprehension’s body until the fields it reads have a concrete value, rather than trying to produce its fields up front. This resolves a number of long-standing bugs, most notably the last known regressions from evalv2, where a comprehension that should have resolved instead failed as an incomplete value or a cycle.
This design also greatly simplifies upcoming evaluator work, such as introducing new builtins to replace comparing values to bottom, as well as the design of evalv4.
Other changes
The evaluator no longer deduplicates errors just by position, which was causing some useful errors from disjunctions or standard library calls to be dropped incorrectly.
Several long-standing cycle-detection bugs have been fixed, such as self-referential uses of matchN and matchIf, self-feeding disjunctions, and comprehensions that read a let binding which refers back to the comprehension’s own fields.
Fixed a bug where the same package imported via different qualified import paths (e.g. foo.com/bar@v0 or foo.com/bar:baz) did not share the same hidden field namespace.
Resolving an unversioned import from a dependency module now respects that module’s own default major version, instead of always using the main module’s default.
Fix a number of issues where cue def could produce invalid CUE output, such as due to name conflicts.
Fix an evaluator regression where embedded disjunctions across packages may not correctly apply closedness.
Fix an evaluator bug where cue.Context.BuildExpr of close({}) did not actually result in a closed struct.
Fix a bug where some calls to standard library functions or validators did not include the “error in call to pkg.Func” error context, or included it twice.
A few changes to the evaluator should reduce allocated objects by up to 16%, reducing GC overhead and memory usage.
To ease the transition into the new formatter we plan to release with v0.18, CUE_EXPERIMENT=formatv2=0 is now allowed as a no-op.
A number of other bugs, panics, and hangs have been resolved as well.
cmd/cue
Module replaces
CUE now supports substituting a module dependency with a local directory or a different remote module during development - for example while testing a fix to a dependency before it is published, or to replace a dependency with a fork including improvements.
This configuration lives in cue.mod/local-module.cue, which is excluded when publishing to registries. cue mod edit and cue mod tidy gain support for maintaining this file.
We have also published a how-to guide on replacing a dependency with a local module.
Read the full design doc in the proposal, or read the cue.mod/local-module.cue reference docs.
Other changes
The new global -C or --chdir flag runs cue from the given working directory.
Command input parsing is improved so that CUE packages can come after data files, such as cue vet -c data.yaml ./schema.
cue import --with-context now ensures that data represents the original raw input data, and not its interpretation like JSON Schema.
cue import --path now skips over null values in an input stream, such as empty documents in a YAML file.
Fix a bug where the flag cue export --path was ignored when the inputs were pure CUE.
The new cue exp gengotypes --outfile flag controls the output file path when generating a single package.
cue vet -d/--schema now supports hidden fields, and correctly reports an error when the command inputs are CUE only.
cue fix and cue trim no longer change file modification times when no changes are necessary.
A $CUE_CACHE_DIR directory is no longer required when loading CUE without external dependencies.
The “filetypes” lookup tables now use a more compact encoding, saving about 150KiB in binary size for cmd/cue as well as Go API users.
LSP server
Add an initial version of organize-imports, which sorts the existing imports and removes unneeded imports. It is not yet capable of suggesting missing imports.
Wait for a short period of inactivity before sending diagnostics to the editor. This “debounce” means that a user typing incomplete CUE syntax will not be distracted with syntax errors as much.
The aliasv2 experiment is now fully supported.
The rename function is fixed to distinguish between field names and aliases.
Improve field name analysis in general so that fields with multiple aliases (e.g. v=[k=string]: _) are properly supported.
Improve attribute handling for file-level embedded attributes, and to attach attributes within expressions to the correct struct.
Treat conjunctions (&) and disjunctions (|) the same way for goto-definition. With the cursor on a path, it returns all results that the path MAY resolve to. With the cursor on a field declaration name, it returns all results that the path constructed from the field’s name, and its field’s name (and so on) MAY resolve to.
Special-case close function calls so that paths can resolve through fields within the argument to close.
Encodings
⚠️ The experimental JSON Schema encoder now emits most definitions without the leading # character, shortening names and ensuring compatibility with the wider JSON Schema ecosystem. This required deprecating encoding/jsonschema.GenerateConfig.NameFunc in favor of NamesFunc.
The JSON Schema encoder is improved to support list.UniqueItems and standalone validators, to use maxItems and minItems instead of maxLength and minLength for lists with prefix elements, and to generate description keywords for doc comments.
Several closedness bugs in the JSON Schema encoder have been fixed, ensuring that the generated JSON Schema behaves the same way as the original CUE definition.
The JSON Schema decoder is improved to better handle the prefixItems keyword.
The ProtoBuf decoder now resolves relative references following the usual scoping rules, instead of always resolving them against the top-level scope.
Standard library
Add time.ToUnix and time.ToUnixNano, which convert an RFC3339Nano time value into seconds or nanoseconds since the Unix epoch, complementing the existing Unix builtin.
strconv.FormatFloat now accepts a string format parameter, like FormatFloat(3.14, "e", 4, 64).
list.MatchN now shows what expected value it’s matching against when it fails.
The net IP APIs now consistently return an error on invalid input types.
Go API
Using cue.Values concurrently is now fully supported, which required deprecating cue.Value.Context. If you encounter any races or bugs, please report them via the issue tracker.
cue/load now supports loading from an io/fs.FS, as outlined in proposal #4285. Loading file embeds through Config.Overlay and Config.FS is supported now as well.
cue/ast/astutil deprecates Sanitize in favor of the new SanitizeFiles API, given that Sanitize on a single file cannot know if another file in the same package shadows builtin names like self.
Add Path.Compare and Selector.Compare, providing allocation-free total ordering suitable for slices.SortFunc.
Clarify that cue/format indents with a tab width of 4 by default.
A new fuzzer has been introduced in the cue package, checking that the parser doesn’t crash and that its results are consistent with the rest of the Go APIs like cue/literal. So far, it has already resulted in seventeen bug fixes.
The cue.Interpreter option API has been deprecated in favor of cue.WithInjection, which is a better name going forward.
⚠️ cue/ast.File.Imports, deprecated in mid 2025 in favor of cue/ast.File.ImportSpecs, is now removed.
⚠️ The long-deprecated and hidden cue.Instance methods Lookup, LookupDef, LookupField, and Fill are now removed.
⚠️ The modconfig.Registry interface is changed to report default major versions, which is required for resolving unversioned imports against each dependency module’s own defaults. Clients that implement or wrap the interface will need to update. The new interface is future-proofed for upcoming modules changes.
All changes
539 changes since v0.16.0by area
all17
allhide the "ini" decoder for v0.17allstop using "directive" terminology for module replacesalladd core plumbing for module replace directivesallmake more use of string cut/trim/contains APIsalladopt the cueckoo @-import guidance mechanismallfix reversed argument order in cmp.Diff callsallmake use of strings.CutPrefixalluse slices and maps iterators for collect-and-sort patternsalluse strings.SplitSeq and strings.Cut to avoid intermediate slicesallfix stray and misplaced doc commentsallallow newlines around interpolations in single-line stringsalladopt cueckoo guidance SessionStart hookallrename fallback keyword to otherwiseallremove support for infix div, mod, quo, and remalluse cue/ast.File.Preamble in two more placesallremove some unused code spotted by staticcheckallstop using XXX for examples and tests
cmd55
cmd/cuetest sharing CUE_EXPERIMENT=formatv2 across v0.17 and v0.18cmd/cuetest that mod publish rejects an invalid module pathcmd/cuereject non-string label values for --pathcmd/cueadd test for --path with a non-string label valuecmd/cuedrop github.com/google/shlex test dependencycmd/cueadd test for package arguments listed after filescmd/cueadd replace directive support to mod editcmd/cuehonor -l/--path when exporting CUE valuescmd/cueadd test for export -l with CUE outputcmd/cuepoint to 'cue help flags' from the --with-context flagcmd/cueevaluate --with-context labels against the source datacmd/cuetest various command scenarios without cache/config dirscmd/cueadd test for label references with jsonschema importcmd/cueadd test cases for issues 4370 and 4371cmd/cuefix vet -d resolving a hidden constraintcmd/cueadd test for vet -d with a hidden constraintcmd/cueadd a regression test for issue 3187cmd/cueadd test for mixing Docker and Podman auth filescmd/cuepreserve mtimes in cue fix and cue trim no-op rewritescmd/cuedocument mtime drift in fix and trimcmd/cuefix json error tests on Go tipcmd/cue/cmdadd test for exec.Run JSON marshalingcmd/cuesurface [inputs] and [flags] in command helpcmd/cueerror when -d/--schema is used without non-CUE inputcmd/cuetest current -d behavior with only CUE inputcmd/cue/cmdadd regression test for hidden fields like _5cmd/cue/cmdadd regression test for vet list.Contains errorscmd/cue/cmddocument wrong nested-module behavior for issue 2707cmd/cuelist user-defined commands in cue cmd --helpcmd/cueadd -C flag, likegoandgitcmd/cueadd regression test for ranged numeric type namescmd/cuetest that package paths outside the module are rejectedcmd/cuemake tests pass with Go at tip (1.27) againcmd/cue/cmduse goproxytest.Setup for per-test proxy modulescmdfix link to issue 2031cmd/cueadd a regression test for issue #1595cmd/cueadd regression test for issue #1783cmd/cueadd regression test for issue #1834cmd/cueadd regression test for issue #2575cmd/cueprint error and benchmark results with CUE_BENCHcmd/cuetest CUE_STATS_FILE and CUE_BENCH on failing evaluationscmd/cueadd exp gengotypes --outfilecmd/cueswap BuildFile for BuildExpr in --pathcmd/cueadd edge case tests for embed attributescmd/cueadd testscript for #2648cmd/cuereuse astutil.ToFile for --path expressionscmd/cueskip over null when importing with --pathcmd/cueadd tests for issue 3464cmd/cueadd tests for bad version and qualifier in import pathscmd/cuesuggest docker/podman login when OAuth2 device flow is unsupportedcmd/cueadd testscript for cue login when device code endpoint is unsupportedcmd/cueclarify how to authenticate with standard OCI registriescmd/cueadd gengotypes test for conditional narrowing of a type referencecmd/cuereturn an error for non-label --path expressions instead of panickingcmd/cueadd test for package qualifier in subdirectories
cue164
cue/formatrevert #4296 regression testcue/formatrevert manual-AST field alignment fixcue/formatrevert issue #1006 test casescue/formatrevert list and call argument column alignment fixcue/formatrevert spurious empty line fixcue/formatrevert Option-behavior testcue/formatrevert default tab width change from 8 to 4cue/formatrevert multiline string interpolation indentation fixcue/testdata/evaladd test for issue 4392 list-in-let freeze regressioncue/cmdmore replacement test casescue/loadaccept package arguments after file argumentscue/testdataadd missing error output for issue2627cue/build,cue/loadfix hidden-field namespace for versioned importscue/testdataadd regression test for issue #2937cue/errorsaugment paths of wrapped errorscueformat builtin call's function operand as a bare referencecueadd test for builtin call function operand formattingcue/parsersupport try clauses in list literalscue/testdataadd test case demonstrating #2627 reopencue/testdataadd regression tests for nested try clausescue/testdataadd a test for the cycle-detection blowup of issue #4377cueadd regression test for FillPath exporting fields as optionalcueaccept a leading index in ParsePathcueadd TestPaths cases for a leading index in a pathcuegive each TestPaths case its own CUE inputcue/testdataadd test for list-length error with comprehensionscuefix Value.ReferencePath after Eval when sharing is disabledcueclarify Value.ReferencePath path semanticscue/errorsdeduplicate without rendering errors unnecessarilycue/errorsreport all distinct errors at the same positioncue/errorsadd a test recording how often removeMultiples renders errorscue/errorsadd tests for distinct errors dropped at the same positioncueavoid panic in Value.Path for dereferenced let bindingscue/testdata/cycleadd regression test for issue 4357cue/testdataadd #4149 regression test fororstructural cyclecue/testdataadd #4367 regression testscue/testdata/cycleadd regression test for issue 3364cue/parserallow a newline before the closing bracket of an index expressioncue/testdataadd regression test for self-referential builtin cyclescue/testdataadd test for issue #4312cue/testdataadd comprehension pushdown regression for inline conjunction iteratorcue/testdataadd test for issue #4174cue/testdataadd test for issue #4094cue/testdataadd test for issue #4091cue/parserremove pre-v0.2 alias special errorcue/parseradd test cases for pre-v0.2 alias handlingcue/parserremove dead error test codecueadd Unify regression test for comp-produced sub-vertexcue/testdataadd regression test cases to comprehensions/pushdowncuehandle ArcPending and ArcNotPresent in fromArcTypecuedrop stale same-runtime/build requirement from Value docscue/testdatarelax test assertions for refactoring stabilitycueadd Compare methods to Path and Selectorcue/ast/astutildeprecate Sanitize in favor of SanitizeFilescue/testdata/cycleadd test for issue #4253cue/load,internal/mod/modpkgloadrespect nested cue.mod boundariescue/inject/embedresolve files via cue/load.Config's FS or Overlaycueadd regression test for predeclared builtin shadowing in %vcue/ast/astutildetect aliasv2 postfix label-name redeclarationscue/ast/astutiladd test coverage for redeclared alias errorscueallow and enforce parens for single postfix aliascue/ast/astutil,tools/fixadd cross-file shadowing detection for predeclared identifierscue/format,fixhandle trailing commas in listscue/parserallow omitting commas in listscue/testdatare-test with CUE_UPDATE=1cue/loadsupport absolute directory paths as package argscue/astadd Interpolation.Quotes helpercueremove long-deprecated and hidden Instance methodscue/literalreject trailing characters after SI multipliercueuse %q rather than %s in fuzzing errorscue/literalreject NUL bytes in ParseNumcue/scanneraccept SI multiplier after a bare 0cue/scanneralign raw quote lexing with cue/literalcue/cuecontextallow multiple injections for a given kindcue/scannerfix greedy lexing of _ followed by |cue/testdataconvert txtar tests to inline @test formatcue/testdataadd @test to cycle/issue3527cue/testdatarename #todo:inline: markerscue/astremove the deprecated File.Imports slicecue/testdata/benchmarksconvert to inline @test formatcue/testdata/cycleharder casescue/testdataconversion of cases marked as "hard"cue/testdatamore issue descriptions and linkscue/testdataadd shareID annotations and fix pos= line numberscue/testdata/comprehensionsmanual correctionscue/testdata/evalmanual correctionscue/testdata/resolvemanual correctionscue/testdataconvert remaining medium testscue/testdataconvert disjunctions tests to inline @test formatcue/testdataconvert comprehensions tests to @test formatcue/testdataconvert eval/ tests to @test formatcue/testdataforce update cleanupcue/testdataconvert resolve/ tests to inline @test formatcue/testdataconvert definitions/ tests to inline @test formatcue/testdataconvert definitions/ and comprehensions/ testscue/testdataconvert choosedefault/ compile tests to use @testcue/testdataconvert builtins tests to inline @test formatcue/testdataadd missing issue comments to txtar filescue/testdataadd issue comments to txtar test filescue/testdataconvert comparison, interpolation, list, and scalar tests to inline formatcue/literalreject triple quotes at line start in multiline stringscue/testdata/fuzzremove a file I added by accidentcueexempt preamble keywords from fuzzer's ParseFile vs ParseExpr checkcue/build, cue/loadadd ModuleVersion field to build.Instancecue/literalreject invalid UTF-8 in Unquotecue/scannerreject leading-zero integers followed by range operatorcue/parseruse named error return in ParseExpr to fix error loss on bail-outcuealways check that ParseExpr doesn't panic in the fuzzercue/literalreject literal NUL bytes in Unquotecueadd Attribute.Args iteratorcuerefactor attribute testcue/literalfix panic when parsing an empty stringcue/parserinitialize experiments in ParseExprcue/literalreject invalid characters after digits in ParseNumcue/scannerdon't let bare \r prevent multiline string closingcue/scannerrefactor TestScan to use named fields and a want fieldcue/testdataadd issue headers and convert tests to inline formatcue/literalreject consecutive underscores in numbers like the parser doescue/literalreject leading-zero integers like the parser doescuefuzz invalid CUE source as wellcue/scannerreject multiline strings with non-matching whitespacecueadd more entries to the fuzzing seed corpuscue/literalallow triple quotes inside multiline string contentcue/scannerexpand checkError to scan past interpolations toocue/testdatare-test with CUE_UPDATE=1cue/testdataconvert txtar tests to inline @test formatcue/testdata/evalconvert eval txtar tests to inline @test formatcue/testdataconvert easy inline testscue/testdataconvert issue2649 to inlinecue/testdatamark unconverted testscue/testdataconvert list/comprehension testscue/testdata/basicrewriteconvert basiccue/testdataconvert fulleval/resolvecue/testdataconvert tests to inline @test annotationscue/scannerreject underscores in string escape sequencescue/scannerreject octal and hex escapes in string literalscue/literalallow bare carriage return in single-line stringscue/scannerreject exponents with no digitscueteach the fuzzer to check against cue/ast and cue/literalcue/scannerreject closing quotes of multiline strings not after a newlinecue/scannerreject __# as an invalid identifiercueteach the fuzzer to cover cue/format, ast.Walk, and astutil.Applycuemove fuzz_test.go from cue/parser and expand a bitcue/testdataadd regression test for issue #1886cue/testdataadd a regression test for issue #2405cue/testdataadd regression test for issue #962cue/loadfs.FS supportcueclarify that values no longer need to come from the same contextcue/formatfix indentation of multiline strings with interpolationcue/formatchange default tab width from 8 to 4cue/formatadd a test showing how each Option behavescue/formatfix spurious empty line between definitionscueallow concurrent use of Valuecue/formatfix incorrect column alignment in lists and call argscue/formatadd test cases for issue #1006cue/literalmake invalid multi-line string whitespace errors explicitcue/formatfix field alignment for manual ASTs with relative positionscue/formatadd regression test for #4296cue/formatclarify the default behavior for the spacing optionscueimprove error messages for hidden fields in pathscue/errorsuse token.Pos.Compare in Positionscueadd tests showing how ast.NewPredeclared fails to compilecuefix Value.ReferencePath on top level valuecueadd test case for Value.ReferencePath at top level
doc7
doc/reftreat "$" as a valid identifier in the specdoc/refclarify the rule for preceding whitespace in multiline stringsdoc/ref/spec.mdshow multiple package attributes in exampledoc/refstart testing code blocks which we expect to fail parsingdoc/refstart testing CUE code blocks in the spec viago testdoc/refannotate CUE code blocks via their triple backticksdoc/refannotate EBNF code blocks via their triple backticks
encoding23
encoding/inipass token.Pos through the decoder directlyencoding/iniminor decoder cleanupsencoding/inireject section and property name collisionsencoding/jsonschemaadd test for doc comment reflowencoding/jsonschemacompile CRD schema only onceencoding/jsonschemamark generation as experimentalencoding/protobuftranslate google.protobuf.Struct to an open structencoding/protobufrespect lexical scoping rulesencoding/inimake dotted section-name nesting configurableencoding/jsonschemafix closedness handling in Generateencoding/jsonschemapass closedness mode through OrOp in Generateencoding/jsonschemaadd test caseencoding/jsonschemaadd tests for closedness bugs in Generateencoding/jsonschemapropagate recursive closedness in Generateencoding/jsonschematest recursive closedness of generated schemasencoding/jsonschemabetter definition names in Generateencoding/iniintroduce an INI decoderencoding/jsonschemasupportdescriptionkeywordencoding/jsonclarify and test the behavior of nil data with Extractencodingadd godoc hints for cue/ast result typesencoding/jsonschemarecognize builtin validators without callencoding/jsonschemahandle items keyword correctly in draft2020-12encoding/jsonschemafix two bugs in CUE-to-JSON-Schema generation
internal207
internal/cueexperimentteach v0.17 about the formatv2 experimentinternal/core/compilere-run with CUE_UPDATE=1internal/cistop running trybot jobs with pull_request_targetinternal/filetypesshrink embedded toFile lookup tablesinternal/core/adtdo not freeze fieldSetKnown while an own field task is pendinginternal/cuetxtarport old stats frameworkinternal/mod/modload,mod/modzip,cmd/cuetidy and publish two-file modulesinternal/mod/modpkgload,cue/loadresolve major version defaults per moduleinternalonly wrap over-long generated comment linesinternal/core/adthandle cycle placeholder for composite builtinsinternal/core/adtguard nodeContext free on refCountinternal/cuetxtarfix inline runner writeStruct cycle and BasicType embedinternal/core/adtresolve imports to a per-evaluation instanceinternal/modminor module-related code improvementsinternal/core/adttest optional field referencing pushed-down comprehensioninternal/core/adtattribute failed try references to the owning bodyinternal/core/adtfire comprehensions on let-bound self referencesinternal/core/adtadd test for comprehensions on let-bound self referencesinternal/core/adtbound self-feeding disjunction recursion in cycle detectioninternal/core/compiledetect structural cycles in self-referential matchIfinternal/core/compiledetect structural cycles in self-referential matchNinternal/cibump Go and goreleaser for the upcoming alphainternal/core/adtreport true element count for list length mismatchinternal/core/debugonly print integer-labeled arcs of a list valueinternal/filetypesclarify error for combined file type and file nameinternal/core/adtrecompute cached let results that resolved to a cycleinternal/cuetxtarkeep nested inline positions relativeinternal/core/adtdetect structural cycle through inline conjunctioninternal/core/compileupdate compile file commentsinternal/core/adtloosen structure-sharing skip in cycle detectioninternal/core/adtbound self-recursion in cycle detection skipinternal/core/adtdo not treat structure sharing as a cycleinternal/core/adtscope task context error before deferred tasksinternal/core/adtskip typo check on cross-context Finalizeinternal/mod/modregistrybump ociregistry to merge auth sourcesinternal/core/adtskip in-flight nodes when reclaiming buffersinternal/core/compileinclude label-aliased fields in cross-file scopeinternal/core/exportfix label references in pattern constraintsinternal/core/compilestrip @test attributes from mirrored inputsinternal/core/adtflush label-only cyclic CallExpr defermentsinternal/core/adtremove unused nodeContextState.hasOpenValidatorinternal/core/adtremove unused Bottom.Permanent fieldinternal/core/adtremove unused Bottom.ForCycle fieldinternal/core/adtremove unused StructLit.isComprehension fieldinternal/core/adtremove unused StructLit.IsOpen fieldinternal/ciset GORACE in the base configinternal/core/adtfix data race in concurrent FillPathinternal/core/compileisolate txtar goldensinternal/core/adtskip Disjunctions on ancestor-cycle arcsinternal/core/adtfix stale BaseValue cycle on cross-package importsinternal/core/adtre-deref v in Vertex.lookup after state.processinternal/core/adtdefer fieldSetKnown while a parent task is still activeinternal/core/adtdependency-tracking comprehension pushdowninternal/core/toposortinterleave sibling Repeats in field orderinginternal/core/exportadd another test for the toposort buginternal/core/exportadd topocomp regression testinternal/core/exportdedup conjuncts sharing the same body ASTinternal/core/adtadd reproducer for unity failureinternal/ciallow specifying a custom ref in checkoutCodeinternal/core/adtpropagate cycle errors via state in reportFieldErrorinternal/core/adttighten up statesinternal/core/adtadd some edge case testsinternal/golangorgxremove unused dead filesinternal/core/adtidentified faulty testsinternal/core/adtlocalize cycle in disjunct sharing pathinternal/core/adtyield on incomplete reference to in-flight nodeinternal/cuetxtarhonor any= in cmpErr (nested @test(err, any, ...))internal/cuetxtarreplay source @test directives for permuteinternal/cuetxtarrender struct-level errors as bare _|_ with err annotationinternal/cuetxtarauto-promote @test(eq:todo) under CUE_UPDATEinternal/cuetxtartighten cmpStruct/cmpConjunction against silent passesinternal/core/adtforce update cleanupinternal/anyhashnew packageinternal/cibump Go and goreleaser versions for v0.17.0-alpha.1internal/core/exportsanitize Profile.Value outputinternal/core/exportmark predeclared builtin references as suchinternal/core/exportadd test for predeclared builtin shadowinginternal/core/adtfix conjunction semantics for opened embeddingsinternal/core__reclose: detect and restore non-recursive closinginternal/core/adtdocument why toComplete hook must stayinternal/core/adtremove completeNodeTasks from doDisjunctinternal/core/adtstrengthen field-set and arc-type checksinternal/core/adtremove dead code in process and evalStateCIinternal/core/adtfix error propagation bug in inline structsinternal/core/adtremove support for list task dependenciesinternal/core/adtremove taskPos field from schedulerinternal/core/adtadd handleParents and processAncestorsinternal/core/adtstreamline task equality checkinginternal/core/adtget rid of schedFINALIZINGinternal/cueexperimentadd ShortCircuit experimentinternal/lspadd toggle surrounding struct braces code actioninternal/core/adtunify builtin-range matching under MatchBuiltinRangeinternal/corerender predeclared ranged numeric types by nameinternal/core/debugdocument Config fieldsinternal/cuetxtarremove @test(leq)internal/cuetxtarfix two inline runner bugsinternal/cuetxtaradd field coverage checkinginternal/cuetxtaruse structural_cycle codeinternal/cuetxtarauto-manage out/errors.txtinternal/cuetxtarmerge permuteCount into permute directiveinternal/cuetxtarsimplify empty @test()internal/core/exportfix infinite recursion in vertex() on cyclic BuiltinValidatorinternal/cuetxtarconvert runner tests to txtar inline formatinternal/cuetxtarhandle field aliases in labelSelectorinternal/cuetxtaremit embedded scalarsinternal/cuetxtarinclude definitions in list elements of @test(eq)internal/cuetxtarenhance @test(err) fillinternal/cuetxtarfix two @test(err) bugs and unify validation logicinternal/cuetxtaremit @test(err,...) annotation for error fields in eq fillinternal/cuetxtaradd txtar testinternal/cuetxtarfill nested pos=[]internal/cuetxtarfix deduplication for at= directivesinternal/cuetxtarextend shareID checks and fix path aliasinginternal/cuetxtarimprove eq value formatterinternal/cuetxtarsplit inline.gointernal/cuetxtardetect misplaced @testinternal/cuetxtaradd custom eq formatter for hidden fields and disjunctionsinternal/cuetxtarfix hidden-field path handling in source AST walkerinternal/cuetxtarrestrict @test(allows) to struct/listinternal/cuetxtarimprove @test(eq) formatting and body validationinternal/cuetxtarfix error message formattinginternal/cuetxtaradd @test(allows, sel) directiveinternal/cuetxtaromit optional error fields in closed structsinternal/cuetxtarfix shared disjunction eq; add at= supportinternal/cuetxtarunify write-backs; strip test attrs from formatted valuesinternal/cuetxtarfix error positions to reference original sourceinternal/cuetxtarrename debugOutput to debuginternal/cuetxtarfix debug attr formattinginternal/cuetxtardetect hidden/def fields in non-struct @test(eq)internal/core/runtimerename Interpreter/Compiler to Injection/Injectorinternal/lspimplement organise imports code actioninternalremove cuetest.Chunkerinternal/core/runtimerefactor ExtractAttrsByKindinternalreplace ParseAttrBody with ParseAttrinternal/core/exportfix hidden field visibility for anonymous pkgIDinternal/core/pathremove unused internal packageinternal/copyremove unused internal packageinternal/cuetxtarfix astcmp for embedded scalarsinternal/cuetxtarfix error message formattinginternal/cuetxtarfix permuteCount lookup and log permutation countinternal/cuetxtarerror on suberr without =internal/core/adtstop comparing V3/V2 stats in TestEvalV3internal/cuetxtarfix CUE_UPDATE=force for eqinternal/cuetxtarreport @test parse errorsinternal/cuetxtaradd err:todo, incorrect, and p= modifiersinternal/cuetxtarfix pattern label comparison in @test(eq, ...)internal/golangorgxdelete Go-specific analyzer infrastructureinternal/golangorgxdelete unused gopls protocol/command packageinternal/lspsupport lazy code action edit resolutioninternal/cuetxtaradd hint= flag and unknown-flag validation to @test directivesinternal/cuetxtarfix @test(debugOutput) multiline string formatinternal/cuetxtarsimplify regression guard for @test(eq) mismatchesinternal/cuetxtarrequire commas between pos= specsinternal/cuetxtaradd at=, pos= order-independence, and hidden field guardsinternal/cuetxtaradd args= and suberr= to @test(err, ...)internal/cuetxtarsupport suberr=(...) in @test(err, ...)internal/cuetxtarmove error assertion code to inline_err.gointernal/cuetxtarsupport shareID assertions in inline testsinternal/cuetxtardocument new @test directivesinternal/cuetxtarshow ./ prefix in out/errors.txt pathsinternal/cuetxtarfix inline loaderinternal/cuetxtarsupport struct-embed form in @test(eq, ...)internal/cuetxtardetect @test in comprehensionsinternal/cuetxtarsupport multi-code errorsinternal/cuetxtaradd out/errors.txt sectioninternal/cuetxtaradd validator and todo supportinternal/cuetxtaradd inline test runnerinternal/lspdebounce sending non-empty diagnosticsinternal/pkgrely on the adt package to wrap call errorsinternal/core/adtimplement BuiltinValidator equalityinternal/core/convertavoid allocating when checking for omitemptyinternal/core/adtuse grouped allocation for let Vertex and Conjunctinternal/pkgremove unnecessary runtime fieldsinternal/core/adtuse strings.Builder for interpolationsinternal/core/compilereturn Disjunction directly from or() builtininternal/core/adtfix !=null as top-level embedding losing constraintinternal/core/adtadd test for !=null as top-level embeddinginternal/core/adtallocate tasks in chunks to reduce GC overheadinternal/core/adtavoid interface boxing in error creationinternal/lspcorrect attributes in expressionsinternal/core/adtuse inline buffer for error position slicesinternal/core/adtuse slices.Clip instead of slices.Clone for Conjunctsinternal/core/adtpropagate ClosedNonRecursive for non-data verticesinternal/core/adtfix closedness check for cross-package embedded disjunctionsinternal/core/runtimerename "test" extern interpreter to "testfn"internal/diffuse Myers algorithm for listsinternal/diffmemoize shared-vertex pairs to avoid re-traversalinternal/core/exportadd regression test for issue 3714internal/lsp/fscacheuse internal.Package helperinternal/lspadd support for evaluation via external validatorsinternal/cueversionbump for the upcoming v0.17 release cycleinternal/core/convertsimplify typeAssertinternal/core/convertfix astFromGoType for recursive types and shared AST pointersinternal/core/compileavoid mutating ASTinternal/core/convertsplit FromGoType into AST and ADT phasesinternal/core/exportfix alias/field name conflict in pattern constraintsinternal/core/exportadd regression test for alias/field name conflictinternal/encoding/gotypespreserve type references through conjunctionsinternal/core/convertfix panic when encoding pointer-receiver marshalersinternal/cidefault to a later version of the CI commit checksinternal/core/compilerecognize ast.NewPredeclaredinternal/core/adtalways add disjunctionTask on builtin arg evalinternal/core/adtdo not side-effect argument state to result stateinternal/ciuse OIDC with the Central Registry for the e2e testsinternalbump staticcheck to v0.7.0 for Go 1.26 supportinternal/core/adtpreparatory work for user-defined functionsinternal/core/adtremove CallContext.Args method
lsp13
lsp/evalcorrect lsp evaluator for importslsp/evalteach lsp to understand "close"lsp/evaladd tests showing current behaviour for close callslsp/evaltreat disjunctions the same as conjunctionslsp/evaladd support for aliasv2 experimentlsp/evalrework field name(s) analysislsp/extvalidatorsupport https://github.com/ remoteslsp/serverremove mutexlsp/cacheimprove renamelsp/serverprotect lsp state modifications with mutexlsp/evalcorrect resolution of package-level fieldslsp/evaladd test showing bad behaviourlsp/servermake "Remove surrounding struct braces" preferred
mod10
mod/modfilerename the local-module.cue replace field to replaceWithmod/modzipreject a downloaded module containing local-module.cuemod/modfile,cue/loadread replace directives from local-module.cuemod/modconfiglazily initialize registry clientsmod/modconfigdelete the dummy $DOCKER_CONFIG dir when the tests are donemod/modcacheretry .partial file writes on Windowsmod/modregistrytestadd metadata capabilitymod/modconfigset DOCKER_CONFIG in tests to prevent hangsmod/module,cue/load,internal/filetypesreject version in import qualifiermod/modfile,internal/modclean up now that #2733 is fixed
pkg16
pkg/encoding/jsonadd test for Validate hiding the failing fieldpkg/timeadd ToUnix and ToUnixNano builtinspkg/listadd regression test for list.Contains with defaultspkg/listreport a missing less field as a fatal errorpkg/encodingreport every Validate conflictpkg/encodingadd tests for Validate reporting a single conflictpkg/listadd a regression test for list error printing hidden arcspkg/tool/execdefault env to an empty structpkg/tool/httprestore Do request header/trailer to accept single stringspkg/network around upstream idna bug breaking net.FQDN validationpkg/netadd regression tests for net.FQDN with invalid domain namespkg/listimprove error message for MatchNpkg/strconvallow string argument for FormatFloat format parameterpkg/netreturn errors for unexpected types in IP validatorspkg/netadd regression tests for IP validators with unexpected typespkgfix godoc mistakes across several packages
tools4
tools/fixremove the unused processor typetools/fixextract and extend explicitopen fixtools/fixadd inline @test frameworktools/jsonrpc2permit func enqueuing into message daisychain
Other23
- [release-branch.v0.17] internal/mod: resolve module replacements via minimum-version selection
- Revert "internal/core/compile: return Disjunction directly from or() builtin"
- update dependencies ahead of v0.17.0-alpha.3
- Revert "cue/errors: augment paths of wrapped errors"
.claudeadd a skill to draft release notes from a commit logmodconfigupdate ociregistry to pick up ociauth fix- update dependencies ahead of the next alpha release
- add a SECURITY.md for easier GitHub discovery
- update dependencies ahead of v0.17.0-alpha.1
.clauderemove deny clause.gitignoreignore .gocache- Revert "internal/core/adt: remove now-unnecessary panic workaround"
CLAUDE.mduse cueckoo guidance as a baselistsuggest MatchN for non-concrete values in Contains doc- update the rest of the direct dependencies
- update all golang.org/x/... dependencies
protobuf/jsonpbfix panic when decoding non-string bytes- remove f.txtar and gitignore any such files going forward
- simplify and generalize
@externsupport gopls/cmdremove unused codeintegration/workspaceadd test showing bad behaviourREADMEclarify that source archive builds lack version info- re-enable staticcheck's SA4000 and SA4003 checks
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_f308f5189b5fd233d5af807a7d86d4106ec73c247852eff50245820af49b4b46 |
| macOS, Apple silicon | cue_d49d4f97ec1db68f1b3e527a78be06a28f3f1b1ca7b5e6902a605450162e5314 |
| Linux, x86-64 | cue_e22219a1cb520ab3d660a486ed2222bb7b8e9cb9502a951ce6b8ac668695713f |
| Linux, Arm64 | cue_f4218d82d2903700ee44615172642146f49c8ddcc3809a46fce6cbd0e5baefa6 |
| Windows, x86-64 | cue_5ee7c2a1ad13b8ed7521b164532e48c8bc1618b500ac3c5808cbbd47d4c9ccb8 |
| Windows, Arm64 | cue_cefcfc8aad2cd6374512f45975fb8cd0dc69dcb6e3c2ca2022e2e1761f5fb858 |