v0.15.0
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 commandaiadd more commands allow listaiset coAuthoredBy in settings
all21
allremove two error results which are always nilallremove three func results which are never usedallreplace two uses of astutil.ParseImportPathallremove two obsolete and commented-out APIsallstart leveraginggo fix -inlineallgo fix -inline ./...allrename aliasandself experiment to aliasv2allgo fix -slicescontains ./...allgo fix -stringsseq ./...allapply more gopls suggestionsallfix a number of bad godocs spotted by goplsallcontinue transition away from adt.Vertex.VisitLeafConjunctsallrun cuetxtar garbage collectionallconsistently split test table structsallswap len([]rune(s)) for utf8.RuneCountInString(s)allclean up #skip-v2 txtar linesallreplace uses of cue/ast.File.VisitImports with ImportDeclsallsimplify iterating over reflect and go/types listsallrely ongo get -toolnow that we require Go 1.24 or laterallrequire Go 1.24 or later, release on 1.25allremove some more unused code found by staticcheck
cmd37
cmd/cueremove unused addInjectionFlags parametercmd/cueupdate help text to reflect renamed experimentcmd/cue/cmdadd --deps flag to 'cue mod resolve'cmd/cueadjustcue get go --outfilelogiccmd/cueclarify what version affects experimentscmd/cueadd --outfile flag toget gocmd/cueexplain package instances in cue-help-inputscmd/cuerewrite export help textcmd/cue/cmdaliascue help experimentcmd/cueadd a test case for the recent:pkgnameCLI argument regressioncmd/cuesimplify when printing imported CUE schemascmd/cueremove debug print inget gocmd/cueremove the last use ofshin testscriptscmd/cueinclude global experiments in experiment helpcmd/cueadded cue help experiments commandcmd/cuetest the handling of interrupt signalscmd/cuetreat top-level incomplete errors consistentlycmd/cueadd test for issue 4079 and 4029cmd/cueadd test for issue 4005cmd/cuestop using an internal test packagecmd/cueadd a test showing how we can print empty positionscmd/cueincrease the cmd_after sleep before printing a timestampcmd/cueadd cue mod upgrade and --exp flag for fixcmd/cue-astalways print the ast if it existscmd/cueabortget goon any syntax or type errorscmd/cuetweakget goerror tests to actually do what they saycmd/cuere-enable skippedcue get gotest with broken go:embedcmd/cueuse os/signal.NotifyContext for the root command contextcmd/cue/cmdfix CRD importscmd/cue/cmdadd vet to CRD testcmd/cue/cmdskip TestVersion if VCS information is not stampedcmd/cuerip out the VCS-based version logiccmd/cuetestcue versionoutside of testscriptcmd/cuereplace os.Chdir with testing.T.Chdir in testscmd/cueinclude full gengotypes warning prefixcmd/cue/cmduse ParseInt with 64 bit size in cmd_after testdatacmd/cue/cmdremove EvalV2-specific tests
cue76
cue/parserfix too restrictive parser testcue/ast/astutilhandle patching of some references in Applycue/ast/astutilinclude Sanitize in TestApplycue/ast/astutilavoid walking to the root to reuse scopescue/ast/astutilassume LetClause.Expr and Alias.Expr are non-nilcue/ast/astutilreuse scope allocationscue/astdo not allocate in SetComments when it's a no-opcue/parserreuse commentState allocationscueuse Vertex.SingleConjunct in Value.Sourcecue/loadensure that Config.ModuleRoot is clean, like Config.Dircue/loadcorrectly handle the filesystem root as Config.ModuleRootcue/loadadd test case showing an error when Config.ModuleRoot=="/"cue/tokenrewrite Pos.Before in terms of Pos.Comparecue/tokendon't unpack line info in Pos.Comparecue/tokenremove unnecessary Pos.file nil checkscue/tokendon't unpack line info in Pos.Offsetcue/tokendon't unpack line info in Pos.Filenamecue/tokenreuse File.Offset in File.positioncue/ast/astutilusego fix -inlineon ImportPathNamecue/testdata/eval/bounds.txtaraccept v3 as goldencuesupport ... operator in Exprcue/ast/astutiladd resolver support for postfix aliasescueadd postfix alias syntax infrastructurecuesupport iteration over pattern constraintscueimplement IsClosed and IsClosedRecursivelycueadd test case for the fixed bug 4037cuefix panic in LookupPath on unfinalized arcscue/astsimplify IsValidIdent logic via strings.CutPrefixcuereuse internal.IsDef to tell if a name is a definitioncue/literalproperly include hashes in escape sequences in bytescue/literaladd test case for lossy bytes quotingcue/astrename NewLabel to NewStringLabelcue/buildremove the Instance.Match field, which was never setcue/literaluse Form.tripleQuote when quoting a stringcue/astremove commented out bits of codecue/testdataadd a test case for quoting paths in evaluator errorscue/formatremove unnecessary IsDefOrHidden checkcue/astadd StringLabelNeedsQuotingcue/statsuseResolveDepin arithmeticcue/testdata/basicrewriteuse consistent spelling for "diff/explanation"cue/parseruse more robust logic for detecting the end of an interpolationcue/parseradd test case for string interpolation edge casecue/scannerdocument how interpolations workcue/asttweak ParseImportPath to treat:pkgnameas.:pkgnamecue/loadrespect package qualifiers when matching wildcard packagescue/loaderadd test for issue 4110cueadd test for issue 4093cue/astintroduce NewLabel helper for regular fieldscue/loadadd test case for the fixed issue 741cuededuplicate work from adt.Vertex.Elemscueimplement "self"cue/testdataadd fixed test case for issue 3743cueadd Path.Append methodcue/tokenclarify docs on printable positionscuecompile/erralias.txtar no longer stack overflows on evalv3cue/errorsomit non-printable positions from Positionscue/errorsuse cue/token.Pos.Compare directly in approximateEqualcueremove more unnecessary evalv3 test skipscueremove todoV3 for a Syntax test with a structural cyclecueremove the long-deprecated ResolveReferences optioncue/parserremove all users of FromVersioncue/parsertest use of ... with wrong versioncue/parser,cue/formatimplement PostfixExpr parsing and formattingcue/astadd PostfixExpr AST node for postfix operatorscue/loadsimplify DefaultTagVars code a bitcue/astadd a TODO as a reminder to remove deprecated Field fieldscue/astdeprecate File.Imports in favor of File.ImportSpecscue/astintroduce File.ImportSpecscue/astintroduce an iterator version of File.VisitImportscue/loadclarify semantics of Dir with Overlaycue/ast/astutil,internal/core/toposortremove unused codecue/tokencorrect out-of-bounds token offsets and positionscue/parserconsistent double-underscore validationcue/errorscleanupscue/interpreter/embedadd allowEmptyGlob option for globscueturn of some tests for evalv2
doc5
doc/refclarify exact meaning of value for match* builtinsdoc/ref/spec.mddocument matchN and machIfdoc/ref/spec.mdsome formatting and typo fixesdoc/ref/spec.mdsupport unary == bounddoc/ref/spec.mdsupport comparing values of different types
encoding44
encoding/jsonschemaavoid redundant patternProperties in Generateencoding/yamladd Decoder for streaming YAML documentsencoding/jsonschemaexplicit close handlingencoding/jsonschemaadd testsencoding/jsonschemaoptimize items in definitions tooencoding/jsonschemaadd a test to check optimization in definitionsencodingfix two gopls warningsencoding/jsonschemause unique item values in Generateencoding/jsonschemarecognize pattern constraints in Generateencoding/jsonschemafix patternProperties in Extractencoding/jsonschemarecognize different forms of "const"encoding/jsonschemarecognize closed structs in Generateencoding/jsonschemaimprove teststatsencoding/jsonschematreat close as no-op for nowencoding/jsonschemarecognize list.MatchN in Generateencoding/jsonschemarecognize explicit errors in CUEencoding/jsonschemause error builtin rather than_|_encoding/jsonschemarecognize matchIf in Generateencoding/yamlconsistently use cue.Concrete when calling Value.Syntaxencoding/jsonschemause more genericsiblingsfunctionencoding/jsonschemaminor improvements to Generateencoding/jsonschemaadd a few testsencoding/jsonschemarecognize matchN in Generateencoding/jsonschemaround trip external testsencoding/jsonschemalist supportencoding/jsonschemaimprove mergeAllOf behaviorencoding/jsonschemaadjust for net/url fix in go@masterencoding/jsonschemause ast.Expr rather than mapencoding/jsonschemaadd test case for regular fieldsencoding/jsonschemaimplement Generateencoding/jsonschemaremove unused state.value methodencodinguse ast.StringLabelNeedsQuotingencoding/xml/koalause ast.NewLabelencoding/protobufsupport decoding fully qualified referencesencoding/tomlfix decoding subtable duplicate keysencoding/protobufdon't require google/protobuf files on diskencoding/openapifix "allOff" misspellingencoding/openapiattempt round-trip of generated OpenAPI schemaencoding/openapideprecate Genencoding/jsonschemaremove evalv2 from test dataencoding/jsonschemaflip the character class tests on for Go 1.25encoding/jsonexport JSON Pointer functionsencoding/jsonschemaadd ExtractedCRD.VersionToPathencoding/xml/koalaremove trailing whitespace
internal186
internal/core/adtadd __recloseinternal/ci/basecue fmt filesinternal/core/depfix dependencies on spread operatorinternal/core/depadd test for spread operatorinternal/core/exporthandle spread operatorinternal/core/adtmake CloseInfo.AncestorPositions an iteratorinternal/sourcesimplify ReadAllinternal/sourceavoid a NopCloser if src is already a Closerinternal/lspsimplify processing of package importsinternal/ci/goreleaseractually disable checksum generationinternal/lspsupport standalone files with imports in modulesinternal/lspadd support for renameinternal/lspsupport references with definitionsinternal/core/layerrudimentary implementation of layersinternal/core/adtset t.id only onceinternal/lspwire UsagesForOffset into the LSPinternal/cidon't let "---" lines break git commit trailersinternal/core/adttreat equality bound as open validatorinternal/core/adtadd tests for Issue 4142internal/cibump Go and goreleaserinternal/coremake label references work for all field typesinternal/core/adtreport error for missing required fieldsinternal/core/adtadd tests for issue 3918internal/cueexperimentrename self experiment to aliasandselfinternal/ciuse unauthenticated GerritHub URLinternal/core/adtfix disjunction related mem mgmt buginternal/anyuniquenew packageinternal/core/adtcache containsDefID resultsinternal/core/adtalways print errors in leaf nodesinternal/cistop generating checksums.txt as a release archiveinternal/core/adtturn Vertex.VisitAllConjuncts into an iteratorinternal/core/...fully transition away from Vertex.VisitLeafConjunctsinternal/core/adtavoid hang on self-references through "let"internal/core/adttest TopKind in TestKindStringinternal/core/adtadd the Vertex.LeafConjuncts iteratorinternal/core/adtturn VisitConjuncts into ConjunctsSeqinternal/mod/semverclean up with cmp.Compareinternal/encodingadd jsonschema as an output formatinternal/encodingdo not require input to be concrete for concrete output formatsinternal/encodingrefactor Encoder.Encode, Encoder.EncodeFileinternal/cuetxtardo not skip tests on Instance failureinternal/encoding/gotypeshandle CUE import aliases and duplicatesinternal/cuetxtarimplement garbage collectioninternal/core/compileproperly quote labels in error message pathsinternal/cuetdtestconsider the first item in a Matrix to be defaultinternal/core/adt"write" stats file even when it isn't changinginternal/lsprefactoringinternal/core/adtadd Kind.AllKinds and Kind.Count methodsinternal/exportcater for NodeLinkinternal/encoding/yamluse cue/ast.NewLabelinternal/core/convertuse reflect.Value iterator methodsinternal/core/adtimprove structure sharing for _internal/ciupdate various action dependenciesinternal/core/adtmake Vertex.Elems return an iteratorinternal/cueexperimentmake keepvalidators stableinternal/cueexperimentstandardize experiment lifecycle systeminternal/core/adtaccept structcmp experimentinternal/core/adtshow all user errorsinternal/core/adtadd test for Issues 3983 and 3984internal/core/debugprevent stack overflowinternal/core/debugremove use of compact printer typeinternal/taskfactor out task function creationinternal/core/exportdisable pivotter for data outputinternal/core/adtavoid computing duplicate dependenciesinternal/core/depadd test for Issue #4064internal/core/depkeep track of number of dependencies computedinternal/core/adtreuse allocations of source-less booleansinternal/core/adtre-enable TestSchedulerinternal/ciupgrade to actions/setup-go@v6internal/ciupdate versions of Go and goreleaser for alpha.1internal/lspimplement hoverinternal/core/adtrevert "report comprehension error at task level"internal/core/adtreport comprehension error at task levelinternal/core/adtadd tests for Issue 4055 and 4056internal/core/adtdisable part of memory reclamation for disjunctionsinternal/core/adtstart clean up of IsClosedStructinternalremove "dev" test matricesinternal/lspcope with symlinks and files being deletedinternal/core/adtadd test for issue #4001internal/core/compilefix stack alignment for let referencesinternal/core/exportadd tests for Issue #4051internal/core/compileadd option to print expressions in let referencesinternal/coreremove some parallel testsinternal/core/depdon't do typo checks for dependency analysisinternal/core/adtgate openDebugGraph on debug flaginternal/core/adtpass flags through as isinternal/core/adtrefactor flags passed to unifyinternal/core/adtmake combinedFlags publicinternalremove old mechanism to track CUE language versionsinternal/lspimplement LSP Completioninternalmove SetPackage to cmd/cue/cmd.setPackageinternal/core/compileimplement __closeAll builtininternal/cueexperimentadd experiment validation and lifecycle APIinternalmove ListEllipsis to internal/core/compile.listEllipsisinternalmove MergeDocs to internal/core/export.mergeDocsinternalmove EmbedStruct to encoding/jsonschema.embedStructinternalmove IsEllipsis to cue/format.isEllipsisinternal/coreimplement #A...internalmove ErrInexact to internal/core/subsumeinternalConstraintToken is no longer necessaryinternalremove ErrIncomplete, which was read once but never setinternalinline the only use of NewAttrinternal/core/adtremove checkinternal/golangorgx/tools/testenvremove unnecessary packageinternal/ci/checksimprove @-mention commentsinternal/golangorgx/tools/xcontextreplace Detach with context.WithoutCancelinternal/golangorgx/tools/fuzzyremove another unused packageinternal/golangorgx/gopls/util/constraintsremove another unused packageinternal/golangorgx/tools/proxydirremove another unused packageinternal/golangorgx/gopls/versionremove another unused packageinternal/golangorgx/tools/memoizeremove another unused packageinternal/golangorgx/tools/versionsremove as an unused packageinternal/golangorgx/tools/gocommandremove as an unused packageinternal/core/adtbetter doc comment for OpContextinternal/core/adtfix panic on uninitialized vertex in attemptOnly modeinternal/vcsremove SYSTEMROOT workaround for Windowsinternal/intsetdelete this no-longer-used packageinternal/cueconfiguse omitzero for RegistryLogin.Expiryinternal/core/adtfix dependency issueinternal/core/adtadd test for dependency issueinternal/core/adtremove unused StructLit fieldsinternal/core/adtensure a node is initializedinternal/core/adtpromote some evalv3 results to "golden"internal/core/adtnote that envDisjunct.src is unused via a TODOinternal/core/adtuse stringer for two more typesinternal/core/adtadd a TODO about the parent in newInlineVertexinternal/core/adtdeduplicate code handling lower and upper boundsinternal/core/adtfix a few godocs to align with the declared namesinternal/core/adtremove duplicate package docsinternal/lspwire up jump-to-dfninternal/core/adtfix concreteness checkinternal/core/adtadd tests for 3993internal/core/adtclarify n.reqSets is a bufferinternal/core/adtadd tests for Issue 4020internal/core/adtremove Specialize methodsinternal/core/adtremove Environment.evalCachedinternal/core/adtapply evalv3 TODO in updateListTypeinternal/core/adtremove StructMarker.NeedCloseinternal/core/adtfix initArcs for errors in optional fieldsinternal/core/adtadd tests for Issue 4022internal/core/adtremove OpContext.optionalMarkinternal/core/adtremove CloseInfo.IsClosedinternal/core/adtremove StructInfo.Disableinternal/core/adtremove CycleInfo.Inlineinternal/core/adtdisable OpContext.toFinalizeinternal/core/adtremove OpContext.inDisjunctinternal/core/adtremove disjunct.isDefaultinternal/core/adtremove nodeContext.conjunctsinternal/core/adtactually set nodeContext.kindIDinternal/core/adtremove a piece of code in isFinal only needed for evalv2internal/core/adtremove a piece of code in isClosed only needed for evalv2internal/cueexperimentdeprecate the evalv3 flaginternal/adt/coreimprove validation error positionsinternal/core/adtuse cuetdtest for TestValidateinternal/core/adtadd missing dereferenceinternal/core/adtadd tests for 4011internal/core/adtadd more error positionsinternal/core/adtremove unused nodeContext fieldsinternal/core/adtremove some Vertex-related fieldsinternal/core/adtremove EvalV2 optional trackinginternal/core/adtremove obsolete CloseInfo methodsinternal/core/adtremove EvalV2 closeInfo remnantsinternal/core/adtremove unused Vertex fieldsinternal/core/adtremove unused nodeContext fieldsinternal/core/adtremove EvalV2 remnantsinternal/core/adtremove EvalV2-specific codeinternal/core/adtset right version for testinternalremove EvalV2 from public API and runtimeinternal/cuetdtestremove evalv2 from default matrixesinternal/cuetdtestremove support for evalv2internal/core/adtdetect non-cycleinternal/core/adtfix cycle for structural cyclesinternal/core/adtadd tests for issue 3940 and 3990internal/core/subsumeuse errors.Details instead of single errorinternal/core/subsumeremove explicit test indicesinternal/core/subsumeconvert to cuetdtest frameworkinternal/core/subsumeuse error strings in testsinternal/core/subsumereformat struct fieldsinternal/cidrop the use of ns-linux aliasesinternal/cihave the dispatch and trigger workflows use a separate cacheinternal/cidrop use of setup-buildx-actioninternal/cirequire that workflow names be uniqueinternal/cueversionbump LanguageVersion to v0.15.0internal/core/adtfix ellipsis strictness issueinternal/core/adtadd tests for #4015internal/robustiomark sleeping test as long
lsp48
lsp/definitionsfix find-references (UsagesForOffset)lsp/fscacheset version on token.Filelsp/definitionscall pos.Offset() directlylsp/definitionsimplement UsagesForOffsetlsp/definitionsadd ability to reset definitions analysislsp/rangesetadd String methodslsp/definitionsfix broken build due to self renaminglsp/cachebe robust for nil file contentlsp/definitionsadd support for the self experimentlsp/definitionscompletions from dot should be zero widthlsp/cacheprevent files from being both standalone and module/packagelsp/cacheadd support for standalone fileslsp/definitionsAdd support for explicit-openlsp/servermake formatter be a noop if result is unparsablelsp/serveradd test to show bad formattinglsp/cacherefactor and reduce duplicationlsp/cacheprevent infinitely loading the same packagelsp/cache,lsp/fscache,lsp/serveralways use a non-nil ASTlsp/definitionscorrect modelling of ellipseslsp/definitionsadd test showing broken behaviourlsp/cachebe tolerant of unknown importslsp/definitionsdetect new nodes more efficientlylsp/definitionsfix forward references via explicit unificationlsp/definitionsadd test showing bad behaviourlsp/definitionscanonicalise import path during resolutionlsp/definitionsadd tests for bad importslsp/cacheOnly reformat CUE files if they have no syntactic errorslsp/serveradd test to demonstrate bad formattinglsp/fs_cachecache the parsing error as well as the astlsp/cacheAdd support for old module systemlsp/definitionsadd test for definition definitionslsp/definitionscorrect evaluation of comprehensionslsp/definitionsAdd test for broken for- and let-comprehensionslsp/definitionsImprove resolution of fields inline expressionslsp/definitionsadd tests for broken behaviorlsp/serverallow server to be initialized with zero workspace folderslsp/cacheDo not rely on import paths being uniquelsp/cacheOverride the registry Fetch method within LSPlsp/cacheAdd failing testlsp/definitionsMake field keys resolve to themselveslsp/definitionsgoto-dfn on an import spec jumps to that pkglsp/cachereduce column number by 1 if jump-to-definition produces no resultslsp/definitionsdo not ever call eval before all fields are establishedlsp/definitionsflatten testslsp/definitionsimplement ability for jump-to-dfn to switch package and modulelsp/cachecreate modules and packages when demanded by modpkgloadlsp/definitionsadd analysis to determine resolution of identslsp/cachedon't return cue errors to client
mod4
mod/modregistrymirror referrers in Client.Mirrormod/modregistrymirror referrers in Client.Mirrormod/modimportserrors from parsing are not terminal and are capturedmod/modregistrymirror referrers in Client.Mirror
pkg5
pkg/pathfix test failures when executed with -count Npkg/strconvCUE_UPDATE=1 go testpkg/strconvmake ParseUint work with unlimited size intspkg/strconvfix Atoi and ParseInt to handle unlimited precision integerspkg/netadd ip arithmetic functions
tools9
tools/fixfix several issues with explicitopen rewritetools/fixadd some test casestools/fixdo not add spread operator to liststools/fixadd fixAliasAndSelftools/flowmake running variable more robusttools/fiximplement __closeAll wrapper insertiontools/fixadd TestX for quick teststools/fixadd experiment and upgrade supporttools/trimremove EvalV2 trim implementation
Other15
CONTRIBUTINGdiscourage SSH for Gerrit more actively- update all dependencies
- cue/parser|format: implement postfix alias syntax
- switch this repository to cue.gerrithub.io
- Revert "mod/modregistry: mirror referrers in Client.Mirror"
- update all dependencies
- swap gopkg.in/yaml.v3 for go.yaml.in/yaml/v3
.claudewildcards are only supported at the end of a command- Revert "cmd/cue: use os/signal.NotifyContext for the root command context"
- update cobra and pflag dependencies
- update golang.org/x/... dependencies
- internal/core:adt: don't report errors beyond disjunction boundary
CONTRIBUTINGfix links spotted byxurls -fix- re-enable staticcheck's S1008 check
- Revert "mod/modregistry: mirror referrers in Client.Mirror"
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_3674a0d19cf9bdd5c2ef68ca5e5adf7b2c2782956fd3fc08643ef59ae15a8a5d |
| macOS, Apple silicon | cue_7fcdfd1774ead0b6d44971e2e157d2a2e3bf22e4d1dd6efb010e7a09cae88d1f |
| Linux, x86-64 | cue_06925fc1e5174591cef0b1e42ac32cff4271804742cd20893de1793b6d82d460 |
| Linux, Arm64 | cue_8cd82e968dc0168cf9ea2efdb0f3ce4a3d97b7afd59c8d55cc40adb0a9aa7224 |
| Windows, x86-64 | cue_188931801ff39cd397589a7a271ede54ef0694900ca3f06bc9834dddbb3f39ae |
| Windows, Arm64 | cue_a47d356e4ad3cd891df55c28c24763193f4973662be9ccc4704090083d89ff34 |