v0.15.0

cue-lang/cue Released

A release of CUE OSS · its page on GitHub

Changes which may break some users are marked below with: ⚠️

Note that this release no longer includes a checksums.txt asset; GitHub now provide digests natively.

LSP

This release includes the initial version of cue lsp - with support for “go to definition”, “find references”, rename, code completion, hover documentation, and code formatting.

See our Getting Started wiki page for instructions on how to set it up with your editor.

Please report any bugs or missing features you encounter via the Issue tracker or via the #lsp channels on Discord or Slack.

Language

explicitopen experiment for #A...

The explicitopen per-file experiment enables the posfix ... operator to explicitly open closed structs, allowing additional fields to be added. This change simplifies CUE’s semantics, reduces user confusion, and enables clearer expression of type extensibility patterns.

You can try this experiment by following our how-to guide. For more information, see the proposal on GitHub and the spec change patch.

aliasv2 experiment

The aliasv2 per-file experiment implements the new “postfix aliases” syntax, and introduces a “self” predeclared identifier referring to the innermost surrounding struct or list.

You can try this experiment by following our how-to guide. For more information, see the proposal on GitHub and the spec change patch.

Other experiments

⚠️ With its proposal accepted, the keepvalidators global experiment is now stable, meaning that CUE_EXPERIMENT=keepvalidators is always enabled.

With its proposal accepted, the structcmp per-file experiment is now stable with language.version at v0.15.0 or later, meaning that the @experiment(structcmp) attribute is unnecessary as it’s always enabled.

Evaluator

⚠️ Removing evalv2

The old evalv2 evaluator, which previously could be re-enabled via CUE_EXPERIMENT=evalv3=0, is now deleted. The new evalv3 evaluator has been on by default since v0.13.0, and at this point our entire test suite including Unity is working.

Removing the old evaluator reduces significant load on development, as we were able to clear out 4000 lines of code, and simplify the internal types and code structure. This is a necessary step to unblock ongoing feature and performance work in the evaluator.

As a bonus, because the old and new evaluators shared many core evaluator types, removing the fields only used by the old evaluator yields modest memory usage improvements of around 4-6%.

Performance

Evaluating concrete CUE values no longer involves dependency analysis; this should result in modest speed improvements when marshaling to YAML, via either cue export -e expr -o yaml or yaml.Marshal.

Dependency analysis now avoids computing references more than once, which resolves an expontential performance issue for some configurations using chains of CUE references.

Add caching to a part of the typochecker algorithm; this has been measured to provide performance improvements of up to 30% on a few large projects.

cue/parser now reuses more memory, which results in parsing performance improvements of up to 30% and memory savings of up to 50%, especially when loading large CUE data files.

Other changes

File embedding via the @embed attribute has gained an allowEmptyGlob option, to allow glob patterns to match zero files without causing an error.

The evaluator now shows all user errors created with the error builtin when they can be related to a disjunction failure. Previously, the evaluator would try to only show user errors directly part of a disjunction error, but that caused too many omissions.

Some error positions which were lost in the transition from evalv2 to evalv3 have been reintroduced.

Fix a bug where required fields in a definition might not be enforced when unifying with an inline struct in an expression, such as (#RequiresFoo & {bar: "baz"}).bar.

Fix a regression introduced in v0.12.0 where incomplete errors were not being handled consistently if they directly involved the top-level value.

A number of panics and error regressions in the evaluator which were reported since v0.14 have been fixed; thank you to all who reported these.

cmd/cue

A new cue help experiments command is introduced to document all available per-file and global experiments.

The cue fix --exp flag is introduced to rewrite files or packages to use new and experimental semantics with @experiment attributes.

cue mod mirror now copies OCI referrers between registries, which ensures that artifacts like signatures and attestations which reference modules being mirrored are copied as well.

cue mod resolve gains a --deps flag that lists all dependencies of the current module and which registries they resolve to.

cue get go gains an --outfile flag to generate exactly one CUE file for a single Go package, which can be useful when integrating cue get go into build systems like Bazel.

Fix a regression introduced in v0.9.0 where loading a qualified pattern like ./...:pkgname no longer filtered files based on the package name given.

cue get go now stops on any Go package loading error. Trying to continue in the presence of syntax or type-checking errors could lead to generating incorrect CUE.

Encodings

Initial support for encoding CUE schemas as JSON Schema is added. This includes a new encoding/jsonschema.Generate Go API, as well as CLI support via cue def --out jsonschema. This is currently very experimental, and many features are missing. For now, it can only generate a single version of JSON Schema, draft/2020-12.

The YAML library in the archived Go module gopkg.in/yaml.v3 has been replaced by go.yaml.in/yaml/v3, an active fork now maintained by the YAML organization.

cue exp gengotypes is improved to handle more edge cases with CUE package imports which could result in broken Go code.

The Protobuf decoder has been tweaked to not require files such as google/protobuf/timestamp.proto to exist on disk, given that they are mapped to CUE standard library APIs directly.

The Protobuf decoder has also been tweaked to support fully qualified references such as my.pkg.name.MessageName.

A bug is fixed in the TOML decoder where sub-table keys could incorrectly lead to duplicate key errors.

Standard library

The net package has gained new AddIP and AddIPCIDR functions to add numerical offsets to IP addresses or CIDR networks.

The Atoi, ParseInt, and ParseUint functions in the strconv package now work on integers with unlimited precision, like the rest of the CUE evaluator, rather than just a maximum of 64 bits.

Go API

The new cue.Value.IsClosed and cue.Value.IsClosedRecursively methods report whether a value has been closed at the top level or recursively, which is useful information when writing schema encodings.

The new cue.Patterns and cue.Selector.Pattern APIs allow introspecting pattern constraints in CUE struct values.

The new encoding/yaml.Decoder API allows decoding a stream of YAML documents, given that existing APIs did not support streams of multiple YAML documents.

encoding/json gains JSON Pointer APIs, which are already useful in packages like encoding/jsonschema.

cue/ast introduces PostfixExpr to support upcoming additions to the language syntax.

cue/ast introduces StringLabelNeedsQuoting to determine whether a string label needs to be quoted when used in CUE syntax.

cue/ast introduces NewStringLabel to create an ast.Label as either an unquoted identifier or a quoted string, depending on whether the string label needs quoting.

tools/fix has gained new APIs to fix configs to use an active experiment, as well as fixing configs to a newer language version.

cue introduces a Path.Append convenience method.

⚠️ cue/build.Instance.Match is removed, given that it was never set to any value at any point since it was added.

cue/token is adjusted so that node positions within a file never result in an offset which is outside the bounds of the file. This could easily lead to subtle bugs or panics when using node position offsets.

⚠️ The cue/token.Pos.Before method is now rewritten to match cue/token.Pos.Compare, given that it always returned “false” for positions from different files. The method is now deprecated as well.

cue/errors is adjusted so that Positions only collects printable positions, to prevent printing empty positions in the CLI.

cue/ast deprecates the File.Imports field in favor of the File.ImportSpecs iterator method. The iterator method File.ImportDecls is also introduced for completeness.

⚠️ The long-deprecated cue.ResolveReferences option API is now removed.

cue/parser.DeprecationError.Version is deprecated, as tracking CUE language versions via integers has not been used since v0.4.3, and the mechanism was never properly documented.

All changes

453 changes since v0.14.0by area

ai3

  • aidocument cueckoo runtrybot command@mpvlc996280
  • aiadd more commands allow list@mpvl25f71ea
  • aiset coAuthoredBy in settings@mpvle6d8175

all21

  • allremove two error results which are always nil@mvdan6ed9b98
  • allremove three func results which are never used@mvdaneca4996
  • allreplace two uses of astutil.ParseImportPath@mvdan2dcf1d8
  • allremove two obsolete and commented-out APIs@mvdan25322ae
  • allstart leveraging go fix -inline@mvdan70d6a9c
  • allgo fix -inline ./...@mvdan279e355
  • allrename aliasandself experiment to aliasv2@mpvlb85644f
  • allgo fix -slicescontains ./...@mvdan7b65843
  • allgo fix -stringsseq ./...@mvdan2895806
  • allapply more gopls suggestions@mvdan8d2909c
  • allfix a number of bad godocs spotted by gopls@mvdan5b42b38
  • allcontinue transition away from adt.Vertex.VisitLeafConjuncts@mvdan658608c
  • allrun cuetxtar garbage collection@rogpeppe3e1e769
  • allconsistently split test table structs@mvdan43fd8bc
  • allswap len([]rune(s)) for utf8.RuneCountInString(s)@mvdan2de87fb
  • allclean up #skip-v2 txtar lines@mvdanbca58a4
  • allreplace uses of cue/ast.File.VisitImports with ImportDecls@mvdanb523454
  • allsimplify iterating over reflect and go/types lists@mvdan6b7cdcd
  • allrely on go get -tool now that we require Go 1.24 or later@mvdand40cfd3
  • allrequire Go 1.24 or later, release on 1.25@mvdanf2abd00
  • allremove some more unused code found by staticcheck@mvdanfd7eec8

cmd37

  • cmd/cueremove unused addInjectionFlags parameter@mvdan083dd03
  • cmd/cueupdate help text to reflect renamed experiment@jpluscplusm7d0090a
  • cmd/cue/cmdadd --deps flag to 'cue mod resolve'@rogpeppe15afd50
  • cmd/cueadjust cue get go --outfile logic@mvdan6491013
  • cmd/cueclarify what version affects experiments@mvdanef2044e
  • cmd/cueadd --outfile flag to get go@fioneraa6eaaf6
  • cmd/cueexplain package instances in cue-help-inputs@jpluscplusm103b1ce
  • cmd/cuerewrite export help text@jpluscplusmff5711d
  • cmd/cue/cmdalias cue help experiment@rogpeppe5432a20
  • cmd/cueadd a test case for the recent :pkgname CLI argument regression@mvdana880c06
  • cmd/cuesimplify when printing imported CUE schemas@mvdan16118b3
  • cmd/cueremove debug print in get go@mvdan91d2572
  • cmd/cueremove the last use of sh in testscripts@mvdan25d062b
  • cmd/cueinclude global experiments in experiment help@mpvl062fc5b
  • cmd/cueadded cue help experiments command@mpvlf1feade
  • cmd/cuetest the handling of interrupt signals@mvdan8e34149
  • cmd/cuetreat top-level incomplete errors consistently@mpvl26efa72
  • cmd/cueadd test for issue 4079 and 4029@mpvl07635e5
  • cmd/cueadd test for issue 4005@mpvl1fc8f9d
  • cmd/cuestop using an internal test package@mvdan1c4b8f6
  • cmd/cueadd a test showing how we can print empty positions@mvdanc9a076f
  • cmd/cueincrease the cmd_after sleep before printing a timestamp@mvdanee222d3
  • cmd/cueadd cue mod upgrade and --exp flag for fix@mpvl0070ee7
  • cmd/cue-astalways print the ast if it exists@cuematthew74ef4d2
  • cmd/cueabort get go on any syntax or type errors@mvdanb311ec4
  • cmd/cuetweak get go error tests to actually do what they say@mvdan3995d69
  • cmd/cuere-enable skipped cue get go test with broken go:embed@mvdan5e7885d
  • cmd/cueuse os/signal.NotifyContext for the root command context@mvdan6334f7f
  • cmd/cue/cmdfix CRD imports@rogpeppee3445f0
  • cmd/cue/cmdadd vet to CRD test@rogpeppeed18339
  • cmd/cue/cmdskip TestVersion if VCS information is not stamped@mvdan84dd9df
  • cmd/cuerip out the VCS-based version logic@mvdan80884df
  • cmd/cuetest cue version outside of testscript@mvdan043b7de
  • cmd/cuereplace os.Chdir with testing.T.Chdir in tests@mvdand405769
  • cmd/cueinclude full gengotypes warning prefix@jpluscplusm26ca4d3
  • cmd/cue/cmduse ParseInt with 64 bit size in cmd_after testdata@folliehiyuki08f7564
  • cmd/cue/cmdremove EvalV2-specific tests@mpvl3eef82c

cue76

  • cue/parserfix too restrictive parser test@mpvl7d69171
  • cue/ast/astutilhandle patching of some references in Apply@mpvlb979ace
  • cue/ast/astutilinclude Sanitize in TestApply@mpvl57c6f9f
  • cue/ast/astutilavoid walking to the root to reuse scopes@mvdan4ba9572
  • cue/ast/astutilassume LetClause.Expr and Alias.Expr are non-nil@mvdana77e741
  • cue/ast/astutilreuse scope allocations@mvdane5706db
  • cue/astdo not allocate in SetComments when it's a no-op@mvdand88bc99
  • cue/parserreuse commentState allocations@mvdan1e30ed2
  • cueuse Vertex.SingleConjunct in Value.Source@mvdandea3faa
  • cue/loadensure that Config.ModuleRoot is clean, like Config.Dir@mvdan14472be
  • cue/loadcorrectly handle the filesystem root as Config.ModuleRoot@mvdand7a839b
  • cue/loadadd test case showing an error when Config.ModuleRoot=="/"@mvdan44dba4e
  • cue/tokenrewrite Pos.Before in terms of Pos.Compare@mvdan6c2aa6a
  • cue/tokendon't unpack line info in Pos.Compare@mvdan9623737
  • cue/tokenremove unnecessary Pos.file nil checks@mvdan852de61
  • cue/tokendon't unpack line info in Pos.Offset@mvdan8972e06
  • cue/tokendon't unpack line info in Pos.Filename@mvdan6543708
  • cue/tokenreuse File.Offset in File.position@mvdanf4ba49b
  • cue/ast/astutiluse go fix -inline on ImportPathName@mvdan1850e9b
  • cue/testdata/eval/bounds.txtaraccept v3 as golden@mpvlff6f38b
  • cuesupport ... operator in Expr@mpvl3d8e9ea
  • cue/ast/astutiladd resolver support for postfix aliases@mpvl4d8b1da
  • cueadd postfix alias syntax infrastructure@mpvld92ce18
  • cuesupport iteration over pattern constraints@rogpeppea6f97a1
  • cueimplement IsClosed and IsClosedRecursively@mpvlb28a5f3
  • cueadd test case for the fixed bug 4037@mvdan5c6dd1c
  • cuefix panic in LookupPath on unfinalized arcs@rogpeppe4160e88
  • cue/astsimplify IsValidIdent logic via strings.CutPrefix@mvdan53ace20
  • cuereuse internal.IsDef to tell if a name is a definition@mvdanc486bc3
  • cue/literalproperly include hashes in escape sequences in bytes@mvdand21fac3
  • cue/literaladd test case for lossy bytes quoting@mvdand8c663c
  • cue/astrename NewLabel to NewStringLabel@mvdan869b034
  • cue/buildremove the Instance.Match field, which was never set@mvdandc3731d
  • cue/literaluse Form.tripleQuote when quoting a string@mvdanaf175ed
  • cue/astremove commented out bits of code@mvdaned355b0
  • cue/testdataadd a test case for quoting paths in evaluator errors@mvdan08d34f9
  • cue/formatremove unnecessary IsDefOrHidden check@mvdan0010744
  • cue/astadd StringLabelNeedsQuoting@mvdan1f88e1a
  • cue/statsuse ResolveDep in arithmetic@rogpeppe37ebf7e
  • cue/testdata/basicrewriteuse consistent spelling for "diff/explanation"@rogpeppe8332fd5
  • cue/parseruse more robust logic for detecting the end of an interpolation@rogpeppeafdde34
  • cue/parseradd test case for string interpolation edge case@rogpeppe276bcce
  • cue/scannerdocument how interpolations work@rogpeppe7e9543b
  • cue/asttweak ParseImportPath to treat :pkgname as .:pkgname@mvdan0a41be8
  • cue/loadrespect package qualifiers when matching wildcard packages@rogpeppea862f84
  • cue/loaderadd test for issue 4110@rogpeppe36bcb3e
  • cueadd test for issue 4093@rogpeppe47dab36
  • cue/astintroduce NewLabel helper for regular fields@mvdan8561bce
  • cue/loadadd test case for the fixed issue 741@mvdanb74aa03
  • cuededuplicate work from adt.Vertex.Elems@mvdan258881a
  • cueimplement "self"@mpvl28641c0
  • cue/testdataadd fixed test case for issue 3743@mvdanbae3189
  • cueadd Path.Append method@mpvl9ddc9b8
  • cue/tokenclarify docs on printable positions@mvdan8799675
  • cuecompile/erralias.txtar no longer stack overflows on evalv3@mvdan8e0b5ae
  • cue/errorsomit non-printable positions from Positions@mvdanc7831b9
  • cue/errorsuse cue/token.Pos.Compare directly in approximateEqual@mvdan3058193
  • cueremove more unnecessary evalv3 test skips@mvdan2957497
  • cueremove todoV3 for a Syntax test with a structural cycle@mvdan4830d30
  • cueremove the long-deprecated ResolveReferences option@mvdane8f4d93
  • cue/parserremove all users of FromVersion@mvdan38ec6b8
  • cue/parsertest use of ... with wrong version@mpvlb523734
  • cue/parser,cue/formatimplement PostfixExpr parsing and formatting@mpvlc6ca3e0
  • cue/astadd PostfixExpr AST node for postfix operators@mpvl1bc2d90
  • cue/loadsimplify DefaultTagVars code a bit@mvdanbcb48b3
  • cue/astadd a TODO as a reminder to remove deprecated Field fields@mvdan331b88b
  • cue/astdeprecate File.Imports in favor of File.ImportSpecs@mvdanff529b7
  • cue/astintroduce File.ImportSpecs@mvdanf3ad21b
  • cue/astintroduce an iterator version of File.VisitImports@mvdanad08a6b
  • cue/loadclarify semantics of Dir with Overlay@mvdan506578a
  • cue/ast/astutil,internal/core/toposortremove unused code@mvdanadc29dd
  • cue/tokencorrect out-of-bounds token offsets and positions@cuematthew0b2faae
  • cue/parserconsistent double-underscore validation@mpvl978fc1e
  • cue/errorscleanups@rogpeppe02cd8d7
  • cue/interpreter/embedadd allowEmptyGlob option for globs@rogpeppee09bac9
  • cueturn of some tests for evalv2@mpvl2ae3ec2

doc5

  • doc/refclarify exact meaning of value for match* builtins@mpvla650c53
  • doc/ref/spec.mddocument matchN and machIf@mpvl020764b
  • doc/ref/spec.mdsome formatting and typo fixes@mpvl139b17a
  • doc/ref/spec.mdsupport unary == bound@mpvl3500cef
  • doc/ref/spec.mdsupport comparing values of different types@mpvlc356290

encoding44

  • encoding/jsonschemaavoid redundant patternProperties in Generate@rogpeppea8385f8
  • encoding/yamladd Decoder for streaming YAML documents@mpvl738e6e4
  • encoding/jsonschemaexplicit close handling@rogpeppea94cfbc
  • encoding/jsonschemaadd tests@rogpeppe2606457
  • encoding/jsonschemaoptimize items in definitions too@rogpeppe098b6d1
  • encoding/jsonschemaadd a test to check optimization in definitions@rogpeppe29ad8ee
  • encodingfix two gopls warnings@mvdan33621a6
  • encoding/jsonschemause unique item values in Generate@rogpeppe947c85c
  • encoding/jsonschemarecognize pattern constraints in Generate@rogpeppec356c10
  • encoding/jsonschemafix patternProperties in Extract@rogpeppefc58592
  • encoding/jsonschemarecognize different forms of "const"@rogpeppe5433cb9
  • encoding/jsonschemarecognize closed structs in Generate@rogpeppe113d7b9
  • encoding/jsonschemaimprove teststats@rogpeppe28054b0
  • encoding/jsonschematreat close as no-op for now@rogpeppeb670102
  • encoding/jsonschemarecognize list.MatchN in Generate@rogpeppe09a0f42
  • encoding/jsonschemarecognize explicit errors in CUE@rogpepped293a17
  • encoding/jsonschemause error builtin rather than _|_@rogpeppe49126bb
  • encoding/jsonschemarecognize matchIf in Generate@rogpeppefedcd87
  • encoding/yamlconsistently use cue.Concrete when calling Value.Syntax@mvdan39d559b
  • encoding/jsonschemause more generic siblings function@rogpeppe366de4b
  • encoding/jsonschemaminor improvements to Generate@rogpeppe06d8b91
  • encoding/jsonschemaadd a few tests@rogpeppe2efaae1
  • encoding/jsonschemarecognize matchN in Generate@rogpeppe40a9710
  • encoding/jsonschemaround trip external tests@rogpeppe899a983
  • encoding/jsonschemalist support@rogpeppeb4b3d1b
  • encoding/jsonschemaimprove mergeAllOf behavior@rogpeppeb8e3859
  • encoding/jsonschemaadjust for net/url fix in go@master@mvdanf79aafe
  • encoding/jsonschemause ast.Expr rather than map@rogpeppe77c93c6
  • encoding/jsonschemaadd test case for regular fields@rogpeppee58947e
  • encoding/jsonschemaimplement Generate@rogpeppec60b98a
  • encoding/jsonschemaremove unused state.value method@mvdan14a7236
  • encodinguse ast.StringLabelNeedsQuoting@mvdana73e4cd
  • encoding/xml/koalause ast.NewLabel@mvdan880df5b
  • encoding/protobufsupport decoding fully qualified references@hiporoxaa2b7a6
  • encoding/tomlfix decoding subtable duplicate keys@theoretick343456a
  • encoding/protobufdon't require google/protobuf files on disk@hiporox8d98b1c
  • encoding/openapifix "allOff" misspelling@rogpeppea77f90c
  • encoding/openapiattempt round-trip of generated OpenAPI schema@rogpeppec7bd41c
  • encoding/openapideprecate Gen@rogpeppe2bf0bd5
  • encoding/jsonschemaremove evalv2 from test data@rogpeppea2eed32
  • encoding/jsonschemaflip the character class tests on for Go 1.25@mvdan5f50884
  • encoding/jsonexport JSON Pointer functions@rogpeppe01a745a
  • encoding/jsonschemaadd ExtractedCRD.VersionToPath@rogpeppe4dfe192
  • encoding/xml/koalaremove trailing whitespace@mpvl441eab3

internal186

  • internal/core/adtadd __reclose@mpvlf8bf47a
  • internal/ci/basecue fmt files@mpvlab19f98
  • internal/core/depfix dependencies on spread operator@mpvl5634c58
  • internal/core/depadd test for spread operator@mpvlf1cd0d2
  • internal/core/exporthandle spread operator@mpvl52f26f9
  • internal/core/adtmake CloseInfo.AncestorPositions an iterator@mvdan82c321f
  • internal/sourcesimplify ReadAll@mvdancc3d92d
  • internal/sourceavoid a NopCloser if src is already a Closer@mvdan6d58d63
  • internal/lspsimplify processing of package imports@cuematthewbbf6f4f
  • internal/ci/goreleaseractually disable checksum generation@mvdan93c434c
  • internal/lspsupport standalone files with imports in modules@cuematthew7dcbdf6
  • internal/lspadd support for rename@cuematthew24300be
  • internal/lspsupport references with definitions@cuematthew6feb520
  • internal/core/layerrudimentary implementation of layers@mpvl654b5c0
  • internal/core/adtset t.id only once@mpvlaae1e07
  • internal/lspwire UsagesForOffset into the LSP@cuematthewbdc3901
  • internal/cidon't let "---" lines break git commit trailers@mvdane735c99
  • internal/core/adttreat equality bound as open validator@mpvl15f2a53
  • internal/core/adtadd tests for Issue 4142@mpvlde886bc
  • internal/cibump Go and goreleaser@mvdan64a5e68
  • internal/coremake label references work for all field types@mpvl23a328a
  • internal/core/adtreport error for missing required fields@mpvla25fb94
  • internal/core/adtadd tests for issue 3918@mpvl166a851
  • internal/cueexperimentrename self experiment to aliasandself@mpvla8dce0b
  • internal/ciuse unauthenticated GerritHub URL@jpluscplusm3dabab4
  • internal/core/adtfix disjunction related mem mgmt bug@mpvl335e4fb
  • internal/anyuniquenew package@rogpeppe84c673a
  • internal/core/adtcache containsDefID results@mvdan992c1cd
  • internal/core/adtalways print errors in leaf nodes@mpvl8dce6dc
  • internal/cistop generating checksums.txt as a release archive@mvdan15e67c0
  • internal/core/adtturn Vertex.VisitAllConjuncts into an iterator@mvdan2536d4f
  • internal/core/...fully transition away from Vertex.VisitLeafConjuncts@mvdan40aa589
  • internal/core/adtavoid hang on self-references through "let"@mvdan85e008d
  • internal/core/adttest TopKind in TestKindString@mvdan42731c2
  • internal/core/adtadd the Vertex.LeafConjuncts iterator@mvdan2af8a20
  • internal/core/adtturn VisitConjuncts into ConjunctsSeq@mvdanb33320b
  • internal/mod/semverclean up with cmp.Compare@mvdana85df20
  • internal/encodingadd jsonschema as an output format@rogpeppe577c245
  • internal/encodingdo not require input to be concrete for concrete output formats@rogpeppe9305978
  • internal/encodingrefactor Encoder.Encode, Encoder.EncodeFile@rogpeppe93c27cc
  • internal/cuetxtardo not skip tests on Instance failure@rogpepped62b617
  • internal/encoding/gotypeshandle CUE import aliases and duplicates@phoban01ba534b5
  • internal/cuetxtarimplement garbage collection@rogpeppea3eb068
  • internal/core/compileproperly quote labels in error message paths@mvdan01181e9
  • internal/cuetdtestconsider the first item in a Matrix to be default@rogpeppe1bc296c
  • internal/core/adt"write" stats file even when it isn't changing@rogpeppe1873f84
  • internal/lsprefactoring@cuematthewab67c05
  • internal/core/adtadd Kind.AllKinds and Kind.Count methods@rogpeppe313e0c1
  • internal/exportcater for NodeLink@rogpeppeb2a7b29
  • internal/encoding/yamluse cue/ast.NewLabel@mvdan43c8a39
  • internal/core/convertuse reflect.Value iterator methods@mvdanbe9298b
  • internal/core/adtimprove structure sharing for _@mpvl458b038
  • internal/ciupdate various action dependencies@mvdan79e9f72
  • internal/core/adtmake Vertex.Elems return an iterator@mvdane95b0f9
  • internal/cueexperimentmake keepvalidators stable@mpvlc9da2b2
  • internal/cueexperimentstandardize experiment lifecycle system@mpvl9867177
  • internal/core/adtaccept structcmp experiment@mpvl8572198
  • internal/core/adtshow all user errors@mpvl519b41f
  • internal/core/adtadd test for Issues 3983 and 3984@mpvlada7c5a
  • internal/core/debugprevent stack overflow@mpvl59ed403
  • internal/core/debugremove use of compact printer type@mpvl9ad4116
  • internal/taskfactor out task function creation@mpvl4336f31
  • internal/core/exportdisable pivotter for data output@mpvla964aef
  • internal/core/adtavoid computing duplicate dependencies@mpvlf545420
  • internal/core/depadd test for Issue #4064@mpvlc5f1aa9
  • internal/core/depkeep track of number of dependencies computed@mpvl7ebdd14
  • internal/core/adtreuse allocations of source-less booleans@mvdan2135d16
  • internal/core/adtre-enable TestScheduler@mvdanfbc7d36
  • internal/ciupgrade to actions/setup-go@v6@mvdan467726a
  • internal/ciupdate versions of Go and goreleaser for alpha.1@mvdana486317
  • internal/lspimplement hover@cuematthew723e0de
  • internal/core/adtrevert "report comprehension error at task level"@mpvl58e6f08
  • internal/core/adtreport comprehension error at task level@mpvld77101d
  • internal/core/adtadd tests for Issue 4055 and 4056@mpvl9ce1ae1
  • internal/core/adtdisable part of memory reclamation for disjunctions@mpvla6fa43f
  • internal/core/adtstart clean up of IsClosedStruct@mpvl7ceab16
  • internalremove "dev" test matrices@mvdanb6fed6e
  • internal/lspcope with symlinks and files being deleted@cuematthew3883a78
  • internal/core/adtadd test for issue #4001@mpvl881c5f1
  • internal/core/compilefix stack alignment for let references@mpvl3de5c17
  • internal/core/exportadd tests for Issue #4051@mpvla30ff33
  • internal/core/compileadd option to print expressions in let references@mpvlb97a8db
  • internal/coreremove some parallel tests@mpvl335d306
  • internal/core/depdon't do typo checks for dependency analysis@mpvl9110e72
  • internal/core/adtgate openDebugGraph on debug flag@mpvl3ea1abe
  • internal/core/adtpass flags through as is@mpvl3e7dc44
  • internal/core/adtrefactor flags passed to unify@mpvl7065726
  • internal/core/adtmake combinedFlags public@mpvlaf2083a
  • internalremove old mechanism to track CUE language versions@mvdand1f6273
  • internal/lspimplement LSP Completion@cuematthew6beee33
  • internalmove SetPackage to cmd/cue/cmd.setPackage@mvdan0434db5
  • internal/core/compileimplement __closeAll builtin@mpvl2b8b299
  • internal/cueexperimentadd experiment validation and lifecycle API@mpvld442e3a
  • internalmove ListEllipsis to internal/core/compile.listEllipsis@mvdanae9f86a
  • internalmove MergeDocs to internal/core/export.mergeDocs@mvdan4e71090
  • internalmove EmbedStruct to encoding/jsonschema.embedStruct@mvdan859b546
  • internalmove IsEllipsis to cue/format.isEllipsis@mvdan0f64f5d
  • internal/coreimplement #A...@mpvlfaed5e0
  • internalmove ErrInexact to internal/core/subsume@mvdancd50fd0
  • internalConstraintToken is no longer necessary@mvdan18f3952
  • internalremove ErrIncomplete, which was read once but never set@mvdan3efa36a
  • internalinline the only use of NewAttr@mvdan36a56d2
  • internal/core/adtremove check@mpvle2b9c0d
  • internal/golangorgx/tools/testenvremove unnecessary package@mvdan07ed0ce
  • internal/ci/checksimprove @-mention comments@jpluscplusm3e063a7
  • internal/golangorgx/tools/xcontextreplace Detach with context.WithoutCancel@mvdan1118c02
  • internal/golangorgx/tools/fuzzyremove another unused package@mvdanb168c3c
  • internal/golangorgx/gopls/util/constraintsremove another unused package@mvdandd1b8df
  • internal/golangorgx/tools/proxydirremove another unused package@mvdanb3707ad
  • internal/golangorgx/gopls/versionremove another unused package@mvdan1fec68d
  • internal/golangorgx/tools/memoizeremove another unused package@mvdane6c9e27
  • internal/golangorgx/tools/versionsremove as an unused package@mvdanfa7625d
  • internal/golangorgx/tools/gocommandremove as an unused package@mvdan8949907
  • internal/core/adtbetter doc comment for OpContext@rogpeppe66d6226
  • internal/core/adtfix panic on uninitialized vertex in attemptOnly mode@mvdan15d1982
  • internal/vcsremove SYSTEMROOT workaround for Windows@mvdan4adf74c
  • internal/intsetdelete this no-longer-used package@mvdan8cfc2a0
  • internal/cueconfiguse omitzero for RegistryLogin.Expiry@mvdanf83cf7b
  • internal/core/adtfix dependency issue@mpvl0fde6c8
  • internal/core/adtadd test for dependency issue@mpvlf5f9ae3
  • internal/core/adtremove unused StructLit fields@mpvlba43e9f
  • internal/core/adtensure a node is initialized@mpvlccc44aa
  • internal/core/adtpromote some evalv3 results to "golden"@mpvl2424234
  • internal/core/adtnote that envDisjunct.src is unused via a TODO@mvdand7b32c7
  • internal/core/adtuse stringer for two more types@mvdand782e0b
  • internal/core/adtadd a TODO about the parent in newInlineVertex@mvdancc7e9a4
  • internal/core/adtdeduplicate code handling lower and upper bounds@mvdan0bcb56d
  • internal/core/adtfix a few godocs to align with the declared names@mvdan41c09d5
  • internal/core/adtremove duplicate package docs@mvdan8893db5
  • internal/lspwire up jump-to-dfn@cuematthew895f15c
  • internal/core/adtfix concreteness check@mpvl1fcd2a3
  • internal/core/adtadd tests for 3993@mpvld3cf5b3
  • internal/core/adtclarify n.reqSets is a buffer@mpvl5d9d0bb
  • internal/core/adtadd tests for Issue 4020@mpvl8d60816
  • internal/core/adtremove Specialize methods@mvdan28455c7
  • internal/core/adtremove Environment.evalCached@mvdanfb72538
  • internal/core/adtapply evalv3 TODO in updateListType@mvdan8230c13
  • internal/core/adtremove StructMarker.NeedClose@mvdanceeef0f
  • internal/core/adtfix initArcs for errors in optional fields@mpvldd5aacf
  • internal/core/adtadd tests for Issue 4022@mpvle7d914a
  • internal/core/adtremove OpContext.optionalMark@mvdand9a9f7b
  • internal/core/adtremove CloseInfo.IsClosed@mvdan88adc22
  • internal/core/adtremove StructInfo.Disable@mvdan34592cd
  • internal/core/adtremove CycleInfo.Inline@mvdan5657913
  • internal/core/adtdisable OpContext.toFinalize@mvdanb33c0f5
  • internal/core/adtremove OpContext.inDisjunct@mvdana2c445b
  • internal/core/adtremove disjunct.isDefault@mvdan49b8b29
  • internal/core/adtremove nodeContext.conjuncts@mvdanbebae29
  • internal/core/adtactually set nodeContext.kindID@mvdanc40a3f9
  • internal/core/adtremove a piece of code in isFinal only needed for evalv2@mvdan5310686
  • internal/core/adtremove a piece of code in isClosed only needed for evalv2@mvdane02b962
  • internal/cueexperimentdeprecate the evalv3 flag@mvdan40e1595
  • internal/adt/coreimprove validation error positions@mpvl6e2b1df
  • internal/core/adtuse cuetdtest for TestValidate@mpvl4389bff
  • internal/core/adtadd missing dereference@mpvl889734f
  • internal/core/adtadd tests for 4011@mpvlae34585
  • internal/core/adtadd more error positions@mpvla293c62
  • internal/core/adtremove unused nodeContext fields@mpvl4b8d8d6
  • internal/core/adtremove some Vertex-related fields@mpvl34a8732
  • internal/core/adtremove EvalV2 optional tracking@mpvl216b1c0
  • internal/core/adtremove obsolete CloseInfo methods@mpvl54603d1
  • internal/core/adtremove EvalV2 closeInfo remnants@mpvlf0cc63b
  • internal/core/adtremove unused Vertex fields@mpvl8bcd577
  • internal/core/adtremove unused nodeContext fields@mpvl536ab5a
  • internal/core/adtremove EvalV2 remnants@mpvl240b79d
  • internal/core/adtremove EvalV2-specific code@mpvldfb0f39
  • internal/core/adtset right version for test@mpvl29544b4
  • internalremove EvalV2 from public API and runtime@mpvled13739
  • internal/cuetdtestremove evalv2 from default matrixes@mpvlb0dcdba
  • internal/cuetdtestremove support for evalv2@mpvlfa08400
  • internal/core/adtdetect non-cycle@mpvla622559
  • internal/core/adtfix cycle for structural cycles@mpvle44ffe8
  • internal/core/adtadd tests for issue 3940 and 3990@mpvlfbbee4d
  • internal/core/subsumeuse errors.Details instead of single error@mpvl1630b49
  • internal/core/subsumeremove explicit test indices@mpvl5d07944
  • internal/core/subsumeconvert to cuetdtest framework@mpvlfe3d72f
  • internal/core/subsumeuse error strings in tests@mpvl0ad768e
  • internal/core/subsumereformat struct fields@mpvl59b4253
  • internal/cidrop the use of ns-linux aliases@mvdan9bd14b4
  • internal/cihave the dispatch and trigger workflows use a separate cache@mvdand7a0e58
  • internal/cidrop use of setup-buildx-action@mvdan7c21401
  • internal/cirequire that workflow names be unique@mvdande5c77e
  • internal/cueversionbump LanguageVersion to v0.15.0@mvdanabf08f2
  • internal/core/adtfix ellipsis strictness issue@mpvl8729327
  • internal/core/adtadd tests for #4015@mpvl4350895
  • internal/robustiomark sleeping test as long@mvdan93337b3

lsp48

  • lsp/definitionsfix find-references (UsagesForOffset)@cuematthew27f5797
  • lsp/fscacheset version on token.File@cuematthewe79d2ea
  • lsp/definitionscall pos.Offset() directly@cuematthew64182de
  • lsp/definitionsimplement UsagesForOffset@cuematthew5303c60
  • lsp/definitionsadd ability to reset definitions analysis@cuematthewaba5ee2
  • lsp/rangesetadd String methods@cuematthewbfe4aba
  • lsp/definitionsfix broken build due to self renaming@cuematthew8df341b
  • lsp/cachebe robust for nil file content@cuematthewec216cf
  • lsp/definitionsadd support for the self experiment@cuematthewd4f9bfb
  • lsp/definitionscompletions from dot should be zero width@cuematthew5c15642
  • lsp/cacheprevent files from being both standalone and module/package@cuematthew9357acf
  • lsp/cacheadd support for standalone files@cuematthew632f9b7
  • lsp/definitionsAdd support for explicit-open@cuematthewcbb9e94
  • lsp/servermake formatter be a noop if result is unparsable@cuematthew1b05645
  • lsp/serveradd test to show bad formatting@cuematthew3e45a4d
  • lsp/cacherefactor and reduce duplication@cuematthewcd1a950
  • lsp/cacheprevent infinitely loading the same package@cuematthew20531e1
  • lsp/cache,lsp/fscache,lsp/serveralways use a non-nil AST@cuematthewa1d0472
  • lsp/definitionscorrect modelling of ellipses@cuematthew80231f2
  • lsp/definitionsadd test showing broken behaviour@cuematthew2061b79
  • lsp/cachebe tolerant of unknown imports@cuematthew55e8ce9
  • lsp/definitionsdetect new nodes more efficiently@cuematthewc68d9ad
  • lsp/definitionsfix forward references via explicit unification@cuematthew1eff22f
  • lsp/definitionsadd test showing bad behaviour@cuematthew45af799
  • lsp/definitionscanonicalise import path during resolution@cuematthew4f7461a
  • lsp/definitionsadd tests for bad imports@cuematthew180b162
  • lsp/cacheOnly reformat CUE files if they have no syntactic errors@cuematthew710d9e5
  • lsp/serveradd test to demonstrate bad formatting@cuematthew445d741
  • lsp/fs_cachecache the parsing error as well as the ast@cuematthewdb451cd
  • lsp/cacheAdd support for old module system@cuematthewa070a4a
  • lsp/definitionsadd test for definition definitions@cuematthewf2ba1a2
  • lsp/definitionscorrect evaluation of comprehensions@cuematthew70f9753
  • lsp/definitionsAdd test for broken for- and let-comprehensions@cuematthew829997b
  • lsp/definitionsImprove resolution of fields inline expressions@cuematthew53e2d0a
  • lsp/definitionsadd tests for broken behavior@cuematthewfac115c
  • lsp/serverallow server to be initialized with zero workspace folders@cuematthewae03d29
  • lsp/cacheDo not rely on import paths being unique@cuematthew542de3a
  • lsp/cacheOverride the registry Fetch method within LSP@cuematthew9880749
  • lsp/cacheAdd failing test@cuematthew8d73712
  • lsp/definitionsMake field keys resolve to themselves@cuematthewbfd487f
  • lsp/definitionsgoto-dfn on an import spec jumps to that pkg@cuematthew919aeb4
  • lsp/cachereduce column number by 1 if jump-to-definition produces no results@cuematthewfef46d9
  • lsp/definitionsdo not ever call eval before all fields are established@cuematthew7fb2146
  • lsp/definitionsflatten tests@cuematthewd858fb3
  • lsp/definitionsimplement ability for jump-to-dfn to switch package and module@cuematthew2ddc6de
  • lsp/cachecreate modules and packages when demanded by modpkgload@cuematthew31dc91e
  • lsp/definitionsadd analysis to determine resolution of idents@cuematthew5b5cf18
  • lsp/cachedon't return cue errors to client@cuematthew49b8de5

mod4

  • mod/modregistrymirror referrers in Client.Mirror@rogpeppef0d24a9
  • mod/modregistrymirror referrers in Client.Mirror@rogpeppe9b06b4c
  • mod/modimportserrors from parsing are not terminal and are captured@cuematthew948b921
  • mod/modregistrymirror referrers in Client.Mirror@rogpeppee402d77

pkg5

  • pkg/pathfix test failures when executed with -count N@roman-mazur1bfde52
  • pkg/strconvCUE_UPDATE=1 go test@mvdan6519da0
  • pkg/strconvmake ParseUint work with unlimited size ints@rogpeppef607070
  • pkg/strconvfix Atoi and ParseInt to handle unlimited precision integers@rogpeppe54a8330
  • pkg/netadd ip arithmetic functions@takonomuraf374d29

tools9

  • tools/fixfix several issues with explicitopen rewrite@mpvl4aad065
  • tools/fixadd some test cases@mpvl3b2b9b4
  • tools/fixdo not add spread operator to lists@mpvl7e9a83e
  • tools/fixadd fixAliasAndSelf@mpvl2b281ea
  • tools/flowmake running variable more robust@mpvlc87a88b
  • tools/fiximplement __closeAll wrapper insertion@mpvlc5f9ed8
  • tools/fixadd TestX for quick tests@mpvl6d6ff15
  • tools/fixadd experiment and upgrade support@mpvlaf6c567
  • tools/trimremove EvalV2 trim implementation@mpvldbc027a

Other15

  • CONTRIBUTINGdiscourage SSH for Gerrit more actively@mvdan2e7e5af
  • update all dependencies@mvdand4d62e6
  • cue/parser|format: implement postfix alias syntax@mpvl0eb7de7
  • switch this repository to cue.gerrithub.io@mvdan2a81d1e
  • Revert "mod/modregistry: mirror referrers in Client.Mirror"@mvdan6f47bbf
  • update all dependencies@mvdan5944fee
  • swap gopkg.in/yaml.v3 for go.yaml.in/yaml/v3@mvdan2502321
  • .claudewildcards are only supported at the end of a command@mvdan64f9a26
  • Revert "cmd/cue: use os/signal.NotifyContext for the root command context"@mvdan1061fcd
  • update cobra and pflag dependencies@mvdan0667e66
  • update golang.org/x/... dependencies@mvdanfff2509
  • internal/core:adt: don't report errors beyond disjunction boundary@mpvle999d98
  • CONTRIBUTINGfix links spotted by xurls -fix@mvdana8ef9bc
  • re-enable staticcheck's S1008 check@mvdana7ba537
  • Revert "mod/modregistry: mirror referrers in Client.Mirror"@rogpeppe66211bf

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.15.0_darwin_amd64.tar.gz3674a0d19cf9bdd5c2ef68ca5e5adf7b2c2782956fd3fc08643ef59ae15a8a5d
macOS, Apple siliconcue_v0.15.0_darwin_arm64.tar.gz7fcdfd1774ead0b6d44971e2e157d2a2e3bf22e4d1dd6efb010e7a09cae88d1f
Linux, x86-64cue_v0.15.0_linux_amd64.tar.gz06925fc1e5174591cef0b1e42ac32cff4271804742cd20893de1793b6d82d460
Linux, Arm64cue_v0.15.0_linux_arm64.tar.gz8cd82e968dc0168cf9ea2efdb0f3ce4a3d97b7afd59c8d55cc40adb0a9aa7224
Windows, x86-64cue_v0.15.0_windows_amd64.zip188931801ff39cd397589a7a271ede54ef0694900ca3f06bc9834dddbb3f39ae
Windows, Arm64cue_v0.15.0_windows_arm64.zipa47d356e4ad3cd891df55c28c24763193f4973662be9ccc4704090083d89ff34
Install CUE