v0.17.0-alpha.1

cue-lang/cue Pre-release Released

A release of CUE OSS · its page on GitHub

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.

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:

cue
_y: Y
if X && _y {}

Evaluator

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.

cmd/cue

The new global -C or --chdir flag runs cue from the given working directory.

cue import --path now skips over null values in an input stream, such as empty documents in a YAML file.

The new cue exp gengotypes --outfile flag controls the output file path when generating a single package.

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 JSON Schema decoder is improved to better handle the prefixItems keyword.

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.

Standard library

The net IP APIs now consistently return an error on invalid input types.

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.

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.

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.

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.

All changes

342 changes since v0.16.0by area

all10

  • alluse slices and maps iterators for collect-and-sort patterns@mvdan8345fc2
  • alluse strings.SplitSeq and strings.Cut to avoid intermediate slices@mvdan1ea5ad5
  • allfix stray and misplaced doc comments@mvdan64eaf2f
  • allallow newlines around interpolations in single-line strings@mvdan35cefbf
  • alladopt cueckoo guidance SessionStart hook@myitcv3ce5d41
  • allrename fallback keyword to otherwise@mpvl58cc93c
  • allremove support for infix div, mod, quo, and rem@mvdan6b49d16
  • alluse cue/ast.File.Preamble in two more places@mvdan79b0698
  • allremove some unused code spotted by staticcheck@mvdan4047528
  • allstop using XXX for examples and tests@mvdandb09a3c

cmd30

  • cmd/cue/cmdadd regression test for hidden fields like _5@mvdan1ed8051
  • cmd/cue/cmdadd regression test for vet list.Contains errors@mvdanc2f7338
  • cmd/cue/cmddocument wrong nested-module behavior for issue 2707@mvdan8ff6cee
  • cmd/cuelist user-defined commands in cue cmd --help@mvdanfbcd9f7
  • cmd/cueadd -C flag, like go and git@mvdan079f1a3
  • cmd/cueadd regression test for ranged numeric type names@mvdan04f2c29
  • cmd/cuetest that package paths outside the module are rejected@mvdanaf9f89b
  • cmd/cuemake tests pass with Go at tip (1.27) again@mvdanf1be256
  • cmd/cue/cmduse goproxytest.Setup for per-test proxy modules@rogpeppe89bcf7a
  • cmdfix link to issue 2031@mxeyc237724
  • cmd/cueadd a regression test for issue #1595@mvdan3b9743e
  • cmd/cueadd regression test for issue #1783@mvdanf5c2185
  • cmd/cueadd regression test for issue #1834@mvdancebad32
  • cmd/cueadd regression test for issue #2575@mvdana78c254
  • cmd/cueprint error and benchmark results with CUE_BENCH@mvdanbcabdbb
  • cmd/cuetest CUE_STATS_FILE and CUE_BENCH on failing evaluations@mvdanb777709
  • cmd/cueadd exp gengotypes --outfile@mvdan0716321
  • cmd/cueswap BuildFile for BuildExpr in --path@mvdand5a7b9b
  • cmd/cueadd edge case tests for embed attributes@rogpeppede7f29a
  • cmd/cueadd testscript for #2648@mvdanf8e86e8
  • cmd/cuereuse astutil.ToFile for --path expressions@mvdan0f3b837
  • cmd/cueskip over null when importing with --path@haoqixu31ab53b
  • cmd/cueadd tests for issue 3464@haoqixu52606f9
  • cmd/cueadd tests for bad version and qualifier in import paths@mvdaneab59f8
  • cmd/cuesuggest docker/podman login when OAuth2 device flow is unsupported@mvdan295e51e
  • cmd/cueadd testscript for cue login when device code endpoint is unsupported@mvdana789bce
  • cmd/cueclarify how to authenticate with standard OCI registries@mvdan35f0a56
  • cmd/cueadd gengotypes test for conditional narrowing of a type reference@mvdan757e683
  • cmd/cuereturn an error for non-label --path expressions instead of panicking@mvdane098874
  • cmd/cueadd test for package qualifier in subdirectories@mvdan2ebb51d

cue111

  • cue/ast/astutildeprecate Sanitize in favor of SanitizeFiles@mvdan89b80ad
  • cue/testdata/cycleadd test for issue #4253@mvdanf31ac4d
  • cue/load,internal/mod/modpkgloadrespect nested cue.mod boundaries@mvdande61149
  • cue/inject/embedresolve files via cue/load.Config's FS or Overlay@mvdanb0ce1f5
  • cueadd regression test for predeclared builtin shadowing in %v@mvdan6040780
  • cue/ast/astutildetect aliasv2 postfix label-name redeclarations@mvdan27b5e67
  • cue/ast/astutiladd test coverage for redeclared alias errors@mvdan6d45692
  • cueallow and enforce parens for single postfix alias@mpvld05d75f
  • cue/ast/astutil,tools/fixadd cross-file shadowing detection for predeclared identifiers@mpvle249168
  • cue/format,fixhandle trailing commas in lists@mpvl0fdc3b3
  • cue/parserallow omitting commas in lists@mpvl70a9648
  • cue/testdatare-test with CUE_UPDATE=1@mvdan8165de0
  • cue/loadsupport absolute directory paths as package args@mvdanc08ec6d
  • cue/astadd Interpolation.Quotes helper@mvdanf2dcaea
  • cueremove long-deprecated and hidden Instance methods@mvdan7efad27
  • cue/literalreject trailing characters after SI multiplier@mvdan6ed6b1e
  • cueuse %q rather than %s in fuzzing errors@mvdanfa30adf
  • cue/literalreject NUL bytes in ParseNum@mvdan728b6f6
  • cue/scanneraccept SI multiplier after a bare 0@mvdana00881d
  • cue/scanneralign raw quote lexing with cue/literal@mvdana655ed1
  • cue/cuecontextallow multiple injections for a given kind@rogpeppe311bfa7
  • cue/scannerfix greedy lexing of _ followed by |@myitcve26d4a7
  • cue/testdataconvert txtar tests to inline @test format@mpvl5fc6ae2
  • cue/testdataadd @test to cycle/issue3527@mpvl78a2962
  • cue/testdatarename #todo:inline: markers@mpvl32d96b5
  • cue/astremove the deprecated File.Imports slice@mvdan68d9c0b
  • cue/testdata/benchmarksconvert to inline @test format@mpvl59c78d5
  • cue/testdata/cycleharder cases@mpvl0de9845
  • cue/testdataconversion of cases marked as "hard"@mpvl9045f62
  • cue/testdatamore issue descriptions and links@mpvl96b4a97
  • cue/testdataadd shareID annotations and fix pos= line numbers@mpvl69a8bc6
  • cue/testdata/comprehensionsmanual corrections@mpvl4cdd361
  • cue/testdata/evalmanual corrections@mpvld1f08be
  • cue/testdata/resolvemanual corrections@mpvl9a8f69b
  • cue/testdataconvert remaining medium tests@mpvl0fc9179
  • cue/testdataconvert disjunctions tests to inline @test format@mpvl635c10b
  • cue/testdataconvert comprehensions tests to @test format@mpvld2f6c3e
  • cue/testdataconvert eval/ tests to @test format@mpvl6fbe77c
  • cue/testdataforce update cleanup@mpvlea287c1
  • cue/testdataconvert resolve/ tests to inline @test format@mpvl97ee8d4
  • cue/testdataconvert definitions/ tests to inline @test format@mpvld7cb1b1
  • cue/testdataconvert definitions/ and comprehensions/ tests@mpvl035331e
  • cue/testdataconvert choosedefault/ compile tests to use @test@mpvld178621
  • cue/testdataconvert builtins tests to inline @test format@mpvl592dd33
  • cue/testdataadd missing issue comments to txtar files@mpvl54759dc
  • cue/testdataadd issue comments to txtar test files@mpvlc426c7f
  • cue/testdataconvert comparison, interpolation, list, and scalar tests to inline format@mpvl748a3db
  • cue/literalreject triple quotes at line start in multiline strings@mvdan52810f7
  • cue/testdata/fuzzremove a file I added by accident@mvdan531e826
  • cueexempt preamble keywords from fuzzer's ParseFile vs ParseExpr check@mvdan9f0aeee
  • cue/build, cue/loadadd ModuleVersion field to build.Instance@rogpeppe4c72d71
  • cue/literalreject invalid UTF-8 in Unquote@mvdandc8d0f7
  • cue/scannerreject leading-zero integers followed by range operator@mvdan88f4d9d
  • cue/parseruse named error return in ParseExpr to fix error loss on bail-out@mvdanf7464a8
  • cuealways check that ParseExpr doesn't panic in the fuzzer@mvdan6aad43f
  • cue/literalreject literal NUL bytes in Unquote@mvdan6ba6d06
  • cueadd Attribute.Args iterator@rogpeppe856a378
  • cuerefactor attribute test@rogpeppeed15be3
  • cue/literalfix panic when parsing an empty string@rogpeppeaa9ec0f
  • cue/parserinitialize experiments in ParseExpr@mvdan2b939e8
  • cue/literalreject invalid characters after digits in ParseNum@mvdan9b4d4a4
  • cue/scannerdon't let bare \r prevent multiline string closing@mvdan719111c
  • cue/scannerrefactor TestScan to use named fields and a want field@mvdan470120e
  • cue/testdataadd issue headers and convert tests to inline format@mpvl0ff6db1
  • cue/literalreject consecutive underscores in numbers like the parser does@mvdandf4ddd9
  • cue/literalreject leading-zero integers like the parser does@mvdana31acf2
  • cuefuzz invalid CUE source as well@mvdan560ba4b
  • cue/scannerreject multiline strings with non-matching whitespace@mvdan0e01196
  • cueadd more entries to the fuzzing seed corpus@mvdan0d9aef6
  • cue/literalallow triple quotes inside multiline string content@mvdan4bc27c4
  • cue/scannerexpand checkError to scan past interpolations too@mvdanfa9c31f
  • cue/testdatare-test with CUE_UPDATE=1@mvdanb06b49a
  • cue/testdataconvert txtar tests to inline @test format@mpvl9dd28f0
  • cue/testdata/evalconvert eval txtar tests to inline @test format@mpvlfcb5e33
  • cue/testdataconvert easy inline tests@mpvl1c555aa
  • cue/testdataconvert issue2649 to inline@mpvl6e5ebcf
  • cue/testdatamark unconverted tests@mpvl6e0f91c
  • cue/testdataconvert list/comprehension tests@mpvlf5c7dc5
  • cue/testdata/basicrewriteconvert basic@mpvl39c40b7
  • cue/testdataconvert fulleval/resolve@mpvlaabdde7
  • cue/testdataconvert tests to inline @test annotations@mpvl1f46fae
  • cue/scannerreject underscores in string escape sequences@mvdana3b2da7
  • cue/scannerreject octal and hex escapes in string literals@mvdan2fccd15
  • cue/literalallow bare carriage return in single-line strings@mvdan49e709a
  • cue/scannerreject exponents with no digits@mvdan286fbab
  • cueteach the fuzzer to check against cue/ast and cue/literal@mvdan7f20f3e
  • cue/scannerreject closing quotes of multiline strings not after a newline@mvdan2f87503
  • cue/scannerreject __# as an invalid identifier@mvdanb1dc725
  • cueteach the fuzzer to cover cue/format, ast.Walk, and astutil.Apply@mvdan9a4eacf
  • cuemove fuzz_test.go from cue/parser and expand a bit@mvdanc1e6de6
  • cue/testdataadd regression test for issue #1886@mvdan5e3b554
  • cue/testdataadd a regression test for issue #2405@mvdan584547e
  • cue/testdataadd regression test for issue #962@mvdan7473662
  • cue/loadfs.FS support@rogpepped267795
  • cueclarify that values no longer need to come from the same context@mvdan4c1f083
  • cue/formatfix indentation of multiline strings with interpolation@mvdan256bd97
  • cue/formatchange default tab width from 8 to 4@mvdan470250b
  • cue/formatadd a test showing how each Option behaves@mvdan3ab3da1
  • cue/formatfix spurious empty line between definitions@mvdanb6f4b6d
  • cueallow concurrent use of Value@rogpeppe5b2a1ff
  • cue/formatfix incorrect column alignment in lists and call args@mvdan67e478b
  • cue/formatadd test cases for issue #1006@mvdan3a3e2ab
  • cue/literalmake invalid multi-line string whitespace errors explicit@mvdana6075bd
  • cue/formatfix field alignment for manual ASTs with relative positions@mvdand84ff45
  • cue/formatadd regression test for #4296@mvdanbf001e0
  • cue/formatclarify the default behavior for the spacing options@mvdan5898489
  • cueimprove error messages for hidden fields in paths@myitcvdd80ba6
  • cue/errorsuse token.Pos.Compare in Positions@mvdanc045ec2
  • cueadd tests showing how ast.NewPredeclared fails to compile@mvdanabfb224
  • cuefix Value.ReferencePath on top level value@rogpeppeb63d89f
  • cueadd test case for Value.ReferencePath at top level@rogpeppe7c8469a

doc7

  • doc/reftreat "$" as a valid identifier in the spec@mvdan658e2c5
  • doc/refclarify the rule for preceding whitespace in multiline strings@mvdan6c3186b
  • doc/ref/spec.mdshow multiple package attributes in example@myitcv67c9c5b
  • doc/refstart testing code blocks which we expect to fail parsing@mvdan310f61c
  • doc/refstart testing CUE code blocks in the spec via go test@mvdancec0ef8
  • doc/refannotate CUE code blocks via their triple backticks@mvdan28736a8
  • doc/refannotate EBNF code blocks via their triple backticks@mvdan990bf09

encoding7

  • encoding/iniintroduce an INI decoder@ReginaZhangMSe5482ee
  • encoding/jsonschemasupport description keyword@rogpeppe70043a5
  • encoding/jsonclarify and test the behavior of nil data with Extract@mvdanb06b9bd
  • encodingadd godoc hints for cue/ast result types@mvdand8a8c79
  • encoding/jsonschemarecognize builtin validators without call@rogpeppe8da9114
  • encoding/jsonschemahandle items keyword correctly in draft2020-12@rogpeppe807ba3b
  • encoding/jsonschemafix two bugs in CUE-to-JSON-Schema generation@rogpeppee6866ab

internal134

  • internal/cibump Go and goreleaser versions for v0.17.0-alpha.1@mvdand11a8f8
  • internal/core/exportsanitize Profile.Value output@mvdand846deb
  • internal/core/exportmark predeclared builtin references as such@mvdand3187e5
  • internal/core/exportadd test for predeclared builtin shadowing@mvdan922493a
  • internal/core/adtfix conjunction semantics for opened embeddings@mpvl619d46e
  • internal/core__reclose: detect and restore non-recursive closing@mpvl3091146
  • internal/core/adtdocument why toComplete hook must stay@mpvl5ae2c12
  • internal/core/adtremove completeNodeTasks from doDisjunct@mpvla6b5a9f
  • internal/core/adtstrengthen field-set and arc-type checks@mpvl5750aa5
  • internal/core/adtremove dead code in process and evalStateCI@mpvl1ebe938
  • internal/core/adtfix error propagation bug in inline structs@mpvl881d9cf
  • internal/core/adtremove support for list task dependencies@mpvl75af110
  • internal/core/adtremove taskPos field from scheduler@mpvl003a182
  • internal/core/adtadd handleParents and processAncestors@mpvl61fb61b
  • internal/core/adtstreamline task equality checking@mpvl24446ee
  • internal/core/adtget rid of schedFINALIZING@mpvlfd21f07
  • internal/cueexperimentadd ShortCircuit experiment@mpvl7946990
  • internal/lspadd toggle surrounding struct braces code action@myitcvcb4bd6a
  • internal/core/adtunify builtin-range matching under MatchBuiltinRange@mvdan99c9c5c
  • internal/corerender predeclared ranged numeric types by name@mvdanba93a23
  • internal/core/debugdocument Config fields@mvdan8a3c77c
  • internal/cuetxtarremove @test(leq)@mpvla24e1f8
  • internal/cuetxtarfix two inline runner bugs@mpvl5f95d22
  • internal/cuetxtaradd field coverage checking@mpvl236f4eb
  • internal/cuetxtaruse structural_cycle code@mpvl96651e4
  • internal/cuetxtarauto-manage out/errors.txt@mpvl50022d1
  • internal/cuetxtarmerge permuteCount into permute directive@mpvld0a9f9a
  • internal/cuetxtarsimplify empty @test()@mpvl3820643
  • internal/core/exportfix infinite recursion in vertex() on cyclic BuiltinValidator@mpvlfbc8eaa
  • internal/cuetxtarconvert runner tests to txtar inline format@mpvld3cd0d8
  • internal/cuetxtarhandle field aliases in labelSelector@mpvlca5b6d1
  • internal/cuetxtaremit embedded scalars@mpvl7e957c9
  • internal/cuetxtarinclude definitions in list elements of @test(eq)@mpvlc2f87c5
  • internal/cuetxtarenhance @test(err) fill@mpvl994cb28
  • internal/cuetxtarfix two @test(err) bugs and unify validation logic@mpvl2c81a10
  • internal/cuetxtaremit @test(err,...) annotation for error fields in eq fill@mpvlaa02a6d
  • internal/cuetxtaradd txtar test@mpvldd2e03a
  • internal/cuetxtarfill nested pos=[]@mpvlb8bbf50
  • internal/cuetxtarfix deduplication for at= directives@mpvl58a3f02
  • internal/cuetxtarextend shareID checks and fix path aliasing@mpvledbf489
  • internal/cuetxtarimprove eq value formatter@mpvl8e08414
  • internal/cuetxtarsplit inline.go@mpvlac993a2
  • internal/cuetxtardetect misplaced @test@mpvl388b7b8
  • internal/cuetxtaradd custom eq formatter for hidden fields and disjunctions@mpvl0890c56
  • internal/cuetxtarfix hidden-field path handling in source AST walker@mpvldc09eb7
  • internal/cuetxtarrestrict @test(allows) to struct/list@mpvl6a50f74
  • internal/cuetxtarimprove @test(eq) formatting and body validation@mpvl9f6b851
  • internal/cuetxtarfix error message formatting@mpvl9e38c54
  • internal/cuetxtaradd @test(allows, sel) directive@mpvl4f32ebb
  • internal/cuetxtaromit optional error fields in closed structs@mpvl1cc2518
  • internal/cuetxtarfix shared disjunction eq; add at= support@mpvl83c2843
  • internal/cuetxtarunify write-backs; strip test attrs from formatted values@mpvl0096aed
  • internal/cuetxtarfix error positions to reference original source@mpvl2d88651
  • internal/cuetxtarrename debugOutput to debug@mpvlad75f35
  • internal/cuetxtarfix debug attr formatting@mpvl806d5cc
  • internal/cuetxtardetect hidden/def fields in non-struct @test(eq)@mpvl50f436a
  • internal/core/runtimerename Interpreter/Compiler to Injection/Injector@rogpeppe6d814c7
  • internal/lspimplement organise imports code action@cuematthew70a104f
  • internalremove cuetest.Chunker@mvdand574f75
  • internal/core/runtimerefactor ExtractAttrsByKind@rogpeppe3798917
  • internalreplace ParseAttrBody with ParseAttr@rogpeppe069f279
  • internal/core/exportfix hidden field visibility for anonymous pkgID@mpvlc87cd58
  • internal/core/pathremove unused internal package@mvdan54c2b42
  • internal/copyremove unused internal package@mvdana84d23d
  • internal/cuetxtarfix astcmp for embedded scalars@mpvlb97865c
  • internal/cuetxtarfix error message formatting@mpvld55ba61
  • internal/cuetxtarfix permuteCount lookup and log permutation count@mpvl50a2f84
  • internal/cuetxtarerror on suberr without =@mpvlba24b41
  • internal/core/adtstop comparing V3/V2 stats in TestEvalV3@mpvl288a9fd
  • internal/cuetxtarfix CUE_UPDATE=force for eq@mpvl34ded2f
  • internal/cuetxtarreport @test parse errors@mpvlb1846d7
  • internal/cuetxtaradd err:todo, incorrect, and p= modifiers@mpvl6a8143b
  • internal/cuetxtarfix pattern label comparison in @test(eq, ...)@mpvl63752f9
  • internal/golangorgxdelete Go-specific analyzer infrastructure@mvdanf70cf43
  • internal/golangorgxdelete unused gopls protocol/command package@mvdan8277362
  • internal/lspsupport lazy code action edit resolution@cuematthewc28dcea
  • internal/cuetxtaradd hint= flag and unknown-flag validation to @test directives@mpvl7d7052e
  • internal/cuetxtarfix @test(debugOutput) multiline string format@mpvlfc0e52b
  • internal/cuetxtarsimplify regression guard for @test(eq) mismatches@mpvlc882b03
  • internal/cuetxtarrequire commas between pos= specs@mpvlb1f4929
  • internal/cuetxtaradd at=, pos= order-independence, and hidden field guards@mpvla909542
  • internal/cuetxtaradd args= and suberr= to @test(err, ...)@mpvl7a97228
  • internal/cuetxtarsupport suberr=(...) in @test(err, ...)@mpvlaecf5fe
  • internal/cuetxtarmove error assertion code to inline_err.go@mpvl1513726
  • internal/cuetxtarsupport shareID assertions in inline tests@mpvl953a252
  • internal/cuetxtardocument new @test directives@mpvlafc75bc
  • internal/cuetxtarshow ./ prefix in out/errors.txt paths@mpvl3456ab0
  • internal/cuetxtarfix inline loader@mpvlaac9498
  • internal/cuetxtarsupport struct-embed form in @test(eq, ...)@mpvla8dddff
  • internal/cuetxtardetect @test in comprehensions@mpvl5e6eac8
  • internal/cuetxtarsupport multi-code errors@mpvl3189d7f
  • internal/cuetxtaradd out/errors.txt section@mpvl94e7ceb
  • internal/cuetxtaradd validator and todo support@mpvl5d1f99a
  • internal/cuetxtaradd inline test runner@mpvld5ec6ca
  • internal/lspdebounce sending non-empty diagnostics@cuematthewe3b45a0
  • internal/pkgrely on the adt package to wrap call errors@mvdan9572fbc
  • internal/core/adtimplement BuiltinValidator equality@mpvl801a74a
  • internal/core/convertavoid allocating when checking for omitempty@mvdanf48f1de
  • internal/core/adtuse grouped allocation for let Vertex and Conjunct@mvdandb07a41
  • internal/pkgremove unnecessary runtime fields@mvdan08e8038
  • internal/core/adtuse strings.Builder for interpolations@mvdan5acaffb
  • internal/core/compilereturn Disjunction directly from or() builtin@mvdana97cdb9
  • internal/core/adtfix !=null as top-level embedding losing constraint@mpvl990bcf9
  • internal/core/adtadd test for !=null as top-level embedding@mpvl4739b2c
  • internal/core/adtallocate tasks in chunks to reduce GC overhead@mvdan4865a8e
  • internal/core/adtavoid interface boxing in error creation@mvdanfede7d9
  • internal/lspcorrect attributes in expressions@cuematthew875bf82
  • internal/core/adtuse inline buffer for error position slices@mvdan98fc542
  • internal/core/adtuse slices.Clip instead of slices.Clone for Conjuncts@mvdan824cbfc
  • internal/core/adtpropagate ClosedNonRecursive for non-data vertices@mvdan2c281cb
  • internal/core/adtfix closedness check for cross-package embedded disjunctions@mvdanc172d9c
  • internal/core/runtimerename "test" extern interpreter to "testfn"@mpvl2b3154a
  • internal/diffuse Myers algorithm for lists@mpvl26db406
  • internal/diffmemoize shared-vertex pairs to avoid re-traversal@mpvl20e140f
  • internal/core/exportadd regression test for issue 3714@mvdanb546fdd
  • internal/lsp/fscacheuse internal.Package helper@mvdan8a417a6
  • internal/lspadd support for evaluation via external validators@cuematthewbf11a94
  • internal/cueversionbump for the upcoming v0.17 release cycle@mvdan60dac4a
  • internal/core/convertsimplify typeAssert@rogpeppe03f71ff
  • internal/core/convertfix astFromGoType for recursive types and shared AST pointers@rogpeppe0feb8a8
  • internal/core/compileavoid mutating AST@rogpeppeefbd321
  • internal/core/convertsplit FromGoType into AST and ADT phases@rogpeppea5034b4
  • internal/core/exportfix alias/field name conflict in pattern constraints@mvdane429741
  • internal/core/exportadd regression test for alias/field name conflict@mvdana825637
  • internal/encoding/gotypespreserve type references through conjunctions@mvdan820e153
  • internal/core/convertfix panic when encoding pointer-receiver marshalers@mvdanf087406
  • internal/cidefault to a later version of the CI commit checks@myitcv9147ea2
  • internal/core/compilerecognize ast.NewPredeclared@mvdanb99401f
  • internal/core/adtalways add disjunctionTask on builtin arg eval@rogpeppe9c38a1d
  • internal/core/adtdo not side-effect argument state to result state@rogpeppe6b2a5c6
  • internal/ciuse OIDC with the Central Registry for the e2e tests@mvdanc38e454
  • internalbump staticcheck to v0.7.0 for Go 1.26 support@mvdan691d604
  • internal/core/adtpreparatory work for user-defined functions@rogpeppe14b4578
  • internal/core/adtremove CallContext.Args method@rogpeppe7d60579

lsp13

  • lsp/evalcorrect lsp evaluator for imports@cuematthewfae4cc7
  • lsp/evalteach lsp to understand "close"@cuematthew650c029
  • lsp/evaladd tests showing current behaviour for close calls@cuematthew4fe6dcb
  • lsp/evaltreat disjunctions the same as conjunctions@cuematthewd28c79a
  • lsp/evaladd support for aliasv2 experiment@cuematthewef4f661
  • lsp/evalrework field name(s) analysis@cuematthew62b93c3
  • lsp/extvalidatorsupport https://github.com/ remotes@cuematthewd4d0005
  • lsp/serverremove mutex@cuematthewce34b12
  • lsp/cacheimprove rename@cuematthew9a0566b
  • lsp/serverprotect lsp state modifications with mutex@cuematthew08f7d61
  • lsp/evalcorrect resolution of package-level fields@cuematthew43aefcc
  • lsp/evaladd test showing bad behaviour@cuematthew2a5108a
  • lsp/servermake "Remove surrounding struct braces" preferred@cuematthew83e4b54

mod4

  • mod/modregistrytestadd metadata capability@rogpeppe97b4cd0
  • mod/modconfigset DOCKER_CONFIG in tests to prevent hangs@mpvl30718b7
  • mod/module,cue/load,internal/filetypesreject version in import qualifier@mvdan1de56c5
  • mod/modfile,internal/modclean up now that #2733 is fixed@mvdan6a7dca8

pkg8

  • pkg/tool/httprestore Do request header/trailer to accept single strings@mvdanc476e86
  • pkg/network around upstream idna bug breaking net.FQDN validation@mvdanf001187
  • pkg/netadd regression tests for net.FQDN with invalid domain names@mvdan1e47014
  • pkg/listimprove error message for MatchN@mxey1b8f058
  • pkg/strconvallow string argument for FormatFloat format parameter@mvdan36ee91d
  • pkg/netreturn errors for unexpected types in IP validators@mvdand2d85c7
  • pkg/netadd regression tests for IP validators with unexpected types@mvdanc1fa76c
  • pkgfix godoc mistakes across several packages@mvdanf86d07c

tools3

  • tools/fixextract and extend explicitopen fix@mpvl349c457
  • tools/fixadd inline @test framework@mpvlf679d39
  • tools/jsonrpc2permit func enqueuing into message daisychain@cuematthew48972ef

Other15

  • update dependencies ahead of v0.17.0-alpha.1@mvdan03f2868
  • .clauderemove deny clause@rogpeppeaa0b641
  • .gitignoreignore .gocache@mpvl09c0a65
  • Revert "internal/core/adt: remove now-unnecessary panic workaround"@mvdan1b32beb
  • CLAUDE.mduse cueckoo guidance as a base@myitcv9802e5e
  • listsuggest MatchN for non-concrete values in Contains doc@mxeye21b59a
  • update the rest of the direct dependencies@mvdanb9b0210
  • update all golang.org/x/... dependencies@mvdande8a97c
  • protobuf/jsonpbfix panic when decoding non-string bytes@cuematthewcdc175b
  • remove f.txtar and gitignore any such files going forward@mvdan56af02f
  • simplify and generalize @extern support@rogpepped1f58c6
  • gopls/cmdremove unused code@cuematthew52868cf
  • integration/workspaceadd test showing bad behaviour@cuematthewfe0649f
  • READMEclarify that source archive builds lack version info@mvdanc19c1c4
  • re-enable staticcheck's SA4000 and SA4003 checks@mvdan0a6b6d6

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.17.0-alpha.1_darwin_amd64.tar.gz9bf503ff67cba7e4c69ad2e5dd916da64e1fa5d2b28dd9165800919e898e1281
macOS, Apple siliconcue_v0.17.0-alpha.1_darwin_arm64.tar.gz1f2fe793ecfbecf32274eb9e0129686ba1239366193935cd796b79ff6d8c6ca6
Linux, x86-64cue_v0.17.0-alpha.1_linux_amd64.tar.gz7f9c1b8552b9c3888528be231de7c781b184c5f6a24dc242ddd8c02bcdac0cf4
Linux, Arm64cue_v0.17.0-alpha.1_linux_arm64.tar.gz6c24ed59dd82a782b064f2bb35c113745f926f60e88c991d88fc555ae8d2ec1c
Windows, x86-64cue_v0.17.0-alpha.1_windows_amd64.zip8164f4019fdc875c734a0c4c44716708633c27fba767c663d23a3320720efd66
Windows, Arm64cue_v0.17.0-alpha.1_windows_arm64.zipfa8f0ae79515d7b025a873cd9f060224295c12e577c16badf9bfb6f8707f1f06
Install CUE