v0.18.0-rc.1

Pre-release Released

A release of CUE, published on cue.dev.

Changes which may break some users are marked below with a warning.

Language

File attributes such as @experiment(...) and @extern(embed) are now honored between the package clause and the import declarations, where the spec allows them, rather than being silently ignored or rejected (#2371).

Evaluator

Warning

Closedness now follows what a reference denotes rather than where it is evaluated. A reference which reaches into a definition from outside now closes the value it selects even when it is evaluated inside that definition, such as outside.s below, which was previously accepted. Conversely, a definition which refers to a regular struct no longer rejects a field which a sibling reference in that struct supplies, fixing a regression introduced in v0.18.0-alpha.3 (#4501).

cue
outside: #Out
let Out = {s: {a: 1}, u: outside.s & {b: 2}} // error: field not allowed
#Out: Out

#P: {a?: int}
x: {q: {}, s: #P & q & {a: 3}}
#L: {v: x} // no longer rejects a

Disjuncts which differ only in constraints that can never apply, such as [...int] & [] and [...string] & [], or only in whether they were closed by close or by a definition, are deduplicated again, so that such a disjunction resolves rather than staying ambiguous. A disjunction whose disjuncts carry the same data but different constraints now gives the same result whichever disjunct comes first (#4503).

Errors in a value which is only reachable through a hidden field, a let, or an imported package are now reported by cue vet and cue.Value.Validate, where they were skipped.

cmd/cue

cue vet now checks every data file, and every document of a stream, against the schema and reports all of their errors, rather than stopping at the first one which fails to unify (#2511). cue eval likewise carries on past a failing data file, honoring --out and -i, and no longer writes its --outfile once any error has been reported.

Incomplete errors, such as missing required fields, are now reported alongside other errors when the input is a package too, as v0.18.0-alpha.3 already did for individual files (#3358).

cue eval --ignore --concrete now shows non-concrete values and reference cycles as errors in its output, as documented, rather than printing them as their expressions (#2342). The cue.Concrete option to cue.Value.Syntax behaves the same way.

cue fmt now keeps the source’s line breaks between consecutive import declarations, as gofmt does, rather than forcing a blank line after each (#1545).

A number of formatting regressions compared with the old formatter have been fixed, most of them involving comments. Comments inside index brackets, after a unary operator, before an operand, before the closing brace of a struct, after a call argument, in an interpolation, in a pattern label, or between the clauses of a comprehension are now kept in place rather than dropped or moved where they swallowed the code which followed. Blank lines between comprehension clauses are kept, parentheses grouping a right-nested disjunction are kept, fields sharing a line are no longer padded to align with the rows around them, and the Compact option no longer drops comments.

cue def output of a file which enables aliasv2 in a module below language version v0.18.0 is now valid, keeping the @experiment attribute ahead of a package clause added via -p (#4434).

tool/exec.Run now fills stderr whether or not stdout is captured and whether or not the command succeeds, and fills either field with bytes when it is constrained to that type.

Modules

A ./... pattern now matches packages when the current directory is reached through a symbolic link.

Concurrent cue processes no longer fail to read logins.json on Windows while another one is updating it.

LSP server

Go-to-definition in a file reached through a symbolic link now reports the file which was actually imported. In a file shared by several packages, go-to-definition, find references, and rename no longer silently return nothing after an edit elsewhere in one of those packages.

The language server is more robust against clients: a workspace folder keeps working when the client does not support configuration requests or fails one, rather than crashing on the next edit, and requests sent before initialization or after shutdown are rejected as the protocol describes rather than crashing the server.

As always, the language server is under active development: please report any bugs or missing features you encounter via the Issue tracker or via the #lsp channels on Discord or Slack. See our Getting Started wiki page for instructions on how to set it up with your editor.

Encodings

The YAML encoder introduced in v0.18.0-alpha.1 fixes a number of regressions compared with the old one, and now documents the rules it follows: its output is valid YAML 1.2 which decodes back to the same value. Strings which go-yaml decoders such as the one used by Kubernetes would read as numbers, like 0X1F, and strings starting with --- or ... are quoted; strings with characters such as a no-break space no longer gain literal backslash escapes; strings consisting of only newlines, or with leading newlines before an indented line, no longer lose content; keys longer than 1024 characters are written in explicit form; comments on a flow collection stay outside of its brackets; and number literals are written only in the core schema’s forms.

A @yaml tag can now be given to a list element or an embedded value via a declaration attribute, as in {"x", @yaml(,tag="!Env")}, and tags are written as valid YAML tags, reporting an error for a tag such as Env which is neither local nor a URI (#4269).

cue get go now emits an embedded Go struct as a spread embedding, #Embedded..., in modules at language version v0.18.0 or later, so that the generated definition keeps its own fields under strict embedding. Invalid flags are now reported before the Go packages are loaded, and loading is faster as function bodies are no longer type-checked.

Standard library

list.Sum, list.Product, list.Avg, list.Min, and list.Max once again compute over the elements present in an open list, as len and comprehensions do, undoing the change announced in v0.18.0-alpha.3 which reported any open list as incomplete (#2569).

list.Sort, list.SortStable, and list.IsSorted no longer panic on a comparator whose less field comes from a comprehension, an embedding, or a unification (#3063), and now report a comparator which lacks x or y or whose less is not a boolean as an error, which list.IsSorted used to drop.

Warning

uuid.ToInt now decodes the 128-bit value of its UUID, as documented, rather than converting the bytes of its string form, so its results change. Any form accepted by uuid.Parse yields the same value, which round-trips through uuid.FromInt.

math.Pow now returns 1 for a zero exponent with any base, including zero, as documented (#4506).

The Windows functions of path now follow Go’s path/filepath in handling UNC paths such as \\host\share, cleaning the result of path.Rel, and no longer turning a relative path into one with a volume name.

Go API

cue.Attribute.Kind now reports the kind of the attribute rather than zero for every attribute.

In cue/ast/astutil, Apply now updates references when any node is replaced, so that Sanitize no longer binds references to a replaced alias expression with a spurious let; Cursor.Modified reports a change to the last element of a list or call; and Cursor.Replace moves the comments of the old node to the new one rather than leaving both holding them, which printed each comment twice.

Syntax trees produced by exporting a value, such as via cue.Value.Syntax, no longer share nodes with the syntax from which the value was built, so that editing or formatting the result in place no longer alters later exports. Likewise, cue/load no longer modifies a syntax tree given as an overlay via FromFile when injecting tag values, and injects each tag value once into a file shared by several instances.

cue.Context.Encode now encodes a nil pointer of any type as null, including types implementing json.Marshaler or error, rather than panicking. cuego.Validate and cuego.Complete now report an error for a nil value rather than panicking while holding the package’s lock, which left every later call blocked.

A tools/flow task returning ErrAbort no longer fails the whole flow: its results are dropped and the tasks depending on it are terminated with its error, as documented.

All changes

310 changes since v0.18.0-alpha.3by area

cmd34

  • cmd/cue/cmd/integrationtest virtual workspace folders@mvdanbca2715
  • cmd/cue/cmdmake TestVersion cacheable by go test@mvdan35c6882
  • cmd/cuetest ./... from a directory reached through a symlink@mvdan826d457
  • cmd/cuereport errors in CUE_DEBUG@mvdane811b5e
  • cmd/cueadd a test for CUE_DEBUG errors being ignored@mvdanbb05487
  • cmd/cuetest request trailers in http.Serve@mvdanb88bf50
  • cmd/cuetest exec.Run capturing output as bytes@mvdan40f84e2
  • cmd/cuetest exec.Run capturing stderr alone@mvdand3b6fb3
  • cmd/cuegenerate get go float constants held as binary floats@mvdan8c5b462
  • cmd/cuetest get go with float constants held as binary floats@mvdan3fc995b
  • cmd/cueload std once less in get_go_jsonv2@mvdan4409847
  • cmd/cueavoid loading encoding/json and fmt in get go tests@mvdan1ef053a
  • cmd/cueuse a stub cuelang.org/go module in get_go_cue_value@mvdan745e8cd
  • cmd/cuevalidate get go flags before loading packages@mvdanb5a3dfc
  • cmd/cuedo not type-check function bodies in get go@mvdan60e8f53
  • cmd/cuedrop Go directives from get go comments@mvdanf9b03dd
  • cmd/cuetest that get go copies Go directives into CUE comments@mvdanf051342
  • cmd/cueonly spread embedded definitions in get go@mvdan948dc5b
  • cmd/cuereport unreadable cue.mod directories in fix@mvdan40ce5ad
  • cmd/cueavoid shadowing predeclared types in get go@mvdanb81fad5
  • cmd/cuetest get go with fields named like predeclared types@mvdan7fd8f75
  • cmd/cuetest def output of files enabling aliasv2 in older modules@mvdan2bfb161
  • cmd/cueopen embedded definitions in get go since v0.18.0@mvdanf850ae5
  • cmd/cuetest get go embeds at language version v0.18.0@mvdan78f66ab
  • cmd/cueonly fix cue.mod directories which contain CUE files@mvdanb2f8473
  • cmd/cuetest fix with no arguments and a nested cue.mod/gen tree@mvdanace72bd
  • cmd/cuedrop the unused instance.err field@mvdan3c7e0d1
  • cmd/cuestop validating instances in buildInstances@mvdane8c9794
  • cmd/cuereport incomplete errors alongside other errors in packages@mvdan8a48261
  • cmd/cuetest incomplete errors alongside other errors in packages@mvdan5e84233
  • cmd/cuefind the module root in fix like other commands@mvdan450e402
  • cmd/cueadd tests for fix without arguments outside a readable module@mvdan2f207fb
  • cmd/cuekeep going over data files after a schema error@mvdan825c6d5
  • cmd/cueadd a test for data files stopping at the first schema error@mvdan468e4ac

cue61

  • cue/testdatadocument the base line of relative pos= specs@mvdan67ff6bb
  • cue/testdatarun the issue3599 inline assertions@mvdanaf19f48
  • cue/testdatatest disjunctions whose disjuncts carry the same data@mvdan053010a
  • cue/formatkeep the source layout between import declarations@mvdanaeddc51
  • cue/formatadd a test for consecutive import declarations@mvdan7b16e4f
  • cue/tokenlock the line tables in File.unpack@mvdanbf22460
  • cue/parserrecover from a malformed import path@mvdan264fa3f
  • cue/parsertest import declarations with a malformed path@mvdan1f645a1
  • cue/parserdo not consume a closing token after a missing selector@mvdand254778
  • cue/parsertest a missing selector before a closing token@mvdan48c999c
  • cue/loadclean a trailing slash before a qualifier or version@mvdanf4d6ab9
  • cue/loadtest a trailing slash before a qualifier or version@mvdan15e31e6
  • cue/loadfollow a symlink at the root of a ./... pattern@mvdan09f5f3c
  • cue/parseradd a syntax corpus for editor tooling@cuematthew9442002
  • cue/errorsinline the Printer interface and remove internal/core/format@mvdan148d55c
  • cue/parserlimit the nesting depth of iterative parsing@mvdan37b573b
  • cue/parsertest the nesting depth limit with iterative parsing@mvdanfab7ffd
  • cueadd a TODO about the Docs option ignoring its argument@mvdan0514b33
  • cue/tokenignore out of range first AddLineInfo@mvdan7f808d4
  • cue/tokenadd a test for out of range first AddLineInfo@mvdand8434e9
  • cue/testdatatest close over a disjunction with optional fields@mvdan73d27e9
  • cue/testdatatest a sibling reference in a struct a definition refers to@mvdan9559e39
  • cuekeep Value.Validate's doc to its intended behavior@mvdan04f6613
  • cue/formattest comments inside and before operands@mvdan636aef7
  • cue/formattest comments before the closer of a struct or call@mvdan5dc3bbb
  • cue/formattest blank lines and comments between comprehension clauses@mvdan347f33a
  • cue/formatkeep comments and attributes when compacting or simplifying@mvdanc2bf693
  • cue/formattest comments lost by Compact and Simplify@mvdan0a36e3d
  • cue/formattest comments in interpolations and pattern labels@mvdan1841623
  • cue/formattest comments ending list element and argument rows@mvdan5e7ff73
  • cueclarify what Value.Validate reports@mvdan01f5c7e
  • cue/testdatareword TODOs that still hold but describe the past@mvdan783d33e
  • cue/testdatadrop TODOs answered by later changes@mvdan88149f3
  • cue/testdataconvert TODOs the inline framework now supports@mvdana3ec9ec
  • cuemake Attribute.Kind report the attribute's kind@mvdan0c146be
  • cuetest the kind reported by Attribute.Kind@mvdan50c063b
  • cuereport non-concrete values as errors in Syntax with Concrete@mvdan02c395d
  • cueadd tests for Concrete not reporting errors in Syntax@mvdan40126c6
  • cue/literalreject number literals with an exponent out of range@mvdan34c014c
  • cue/literaladd tests for number literals with an exponent out of range@mvdan9db7841
  • cuenote that the zero Value and Selector are undefined@mvdan4a3e324
  • cuekeep the runtime in error values built without a vertex@mvdanbec461b
  • cueadd a test for ErrNotAPattern panicking when used@mvdan6b4e7a9
  • cuereport an omitted slice bound in Value.Expr as the zero Value@mvdan22ffaca
  • cueadd a test for Value.Expr panicking on an omitted slice bound@mvdan02affe7
  • cue/parserhonor file attributes between the package clause and imports@mvdanca0353a
  • cue/parsertest file attributes between the package clause and imports@mvdan6e0b36d
  • cue/loadpoint references at the final value of fields with tags@mvdan480d151
  • cue/loadadd a test for references to fields with injected tags@mvdan3c52972
  • cue/loadinject each tag value once into syntax the loader owns@mvdan770749a
  • cue/loadadd tests for the syntax of injected tag values@mvdan1211418
  • cue/astclone the default expression of a field@mvdan7edb114
  • cue/astadd a test for cloning the default expression of a field@mvdan6ce5279
  • cue/ast/astutilstop Resolve from growing the list of unresolved idents@mvdane3f4476
  • cue/ast/astutiladd a test for resolving a file more than once@mvdanf238369
  • cue/ast/astutilreport a modified last element to the enclosing nodes@mvdanc1f3ab9
  • cue/ast/astutiladd a test for Modified after changing a last element@mvdanbc774c0
  • cue/ast/astutilupdate references when Apply replaces any node@mvdan5c093bf
  • cue/ast/astutiladd tests for Apply replacing an aliased field value@mvdan865dfae
  • cue/ast/astutilmove comments when Replace takes over the old node's@mvdanb0918d0
  • cue/ast/astutiladd tests for Replace with a wrapper around the node@mvdanbef1398

doc7

  • doc/refstate which closing operations are shallow and which recursive@mvdan7c1d261
  • doc/refupdate the closedness example for strict embedding@mvdande64291
  • doc/refdefine file attributes and allow them after the package clause@mvdan7721494
  • doc/refvalidate the specification's CUE examples@mvdan3213112
  • doc/refapply the spec's error comment edits to a copy@mvdanb0c4839
  • doc/refadd a test for updating the spec's error comments@mvdan301e8d5
  • doc/ref/specshow how an error() message refers to the validated value@mvdan9feb7cc

encoding25

  • encoding/jsonschemadrop the unused brokenRoundTrip test tag@mvdan7bfff54
  • encoding/jsonschemaverify more extracted schemas in TestDecode@mvdanb893150
  • encoding/openapideprecate Config.SelfContained, drop GenerateConfig.PkgName@mvdan0eb5bee
  • encoding/jsonschemagenerate from the extracted schema value directly@mvdan5a0fcdb
  • encoding/jsonschemashare a context between the schemas of a test file@mvdane4d78be
  • encoding/jsonschemaiterate over each schema's fields only once@mvdand7bbda0
  • encoding/jsonschemaread the external tests with encoding/json@mvdan1929f4d
  • encoding/jsonschemaonly log TestExternal details on failure@mvdaned671d3
  • encoding/jsonschemado not run a subtest per test of failed schemas@mvdan99db062
  • encoding/yamltest valid YAML which the decoder rejects@mvdanb16c0d9
  • encoding/yamldocument how values are encoded and test round trips@mvdanc5d40fa
  • encoding/yamladd tests for encoding keys longer than 1024 characters@mvdanf76d1d0
  • encoding/yamladd tests for strings which decoders misread@mvdan6f6e2bf
  • encoding/yamladd tests for literal blocks which lose content@mvdana0c11c9
  • encoding/yamladd tests for quoting strings which need escapes@mvdand636482
  • encoding/jsonschemado not generate nested open structs as constants@mvdan6194cec
  • encoding/jsonschemaadd tests for generating nested open structs@mvdanff87c38
  • encoding/yamlvalidate values before encoding them@mvdanf3c721e
  • encoding/yamladd tests for encoding errors and non-concrete values@mvdan92f8715
  • encoding/protobuf/textprotoreport errors instead of panicking@mvdana0a9ed9
  • encoding/protobuf/textprotoadd tests for decoder panics@mvdanb20603e
  • encoding/protobuftreat an enum without values as empty@mvdan64edd31
  • encoding/protobufadd tests for enums without any values@mvdanc8bbb81
  • encoding/xml/koalareject documents without a root element@mvdan9e26487
  • encoding/xml/koalaadd tests for documents without a root element@mvdan65fc9da

internal122

  • internal/lsp/serverskip non-file workspace folders@mvdan1264dce
  • internal/encodingmake all tests external@mvdan9805b02
  • internal/prettymake all tests external@mvdanc2ceb60
  • internal/lspdrop the gopls settings and Go file kinds@mvdan3a27370
  • internal/golangorgx/gopls/test/integrationdrop Go-specific editor config@mvdana6f2291
  • internal/cuetxtarscope @test(skip) to its path@mvdan8c4e490
  • internal/core/adtrun validate no-sharing cases@mvdanb613411
  • internal/core/adtremove TestEvalV2@mvdan8f718a8
  • internal/core/exportdrop test skip entries matching no test@mvdanbeff5a2
  • internal/core/depenable the inline test with evalv3@mvdan77ff9ed
  • internal/core/subsumemerge TestStructural into TestValues@mvdan749f184
  • internal/ciupdate to Go 1.27.2 and goreleaser v2.18.3@mvdan7f1a1ab
  • internal/core/adtdetect re-instantiation of an inline struct with the same arguments@mpvl52b5141
  • internal/core/adtdeduplicate disjuncts equal but for vacuous constraints@mpvlc216d87
  • internal/lsp/cachecopy comment groups with ast.Clone@mvdan5779f17
  • internal/lsp/fscacheparse a file separately for each path it is read as@mvdan95c5403
  • internal/lsp/fscacheadd a test for definitions in a symlinked file@mvdancb7a601
  • internal/lsp/cachemap positions from any parse of a shared file@mvdan85d1e74
  • internal/lsp/cacheadd a test for files shared by two packages@mvdan9609e1d
  • internal/lsp/serverkeep a workspace folder usable without client configuration@mvdandddc7c3
  • internal/lsp/serveradd a test for a failing workspace configuration fetch@mvdan6e7dd14
  • internal/lsp/serverreject messages outside the initialized state@mvdan965575e
  • internal/lsp/serveradd a test for messages outside the initialized state@mvdana7d7c7a
  • internal/mod/mvskeep only the requirement graph@mvdanc398b51
  • internal/core/adtreject float slice indices@mvdan897fba4
  • internal/core/adttest float slice indices@mvdanf3ab27a
  • internal/pkgreject integer arguments beyond the range of their Go type@mvdand75066e
  • internal/golangorgxremove gopls/util/safetoken@mvdan58049af
  • internal/golangorgxremove the empty gopls/hooks package@mvdan82138b0
  • internal/golangorgxremove the event package tree@mvdan378f8cd
  • internal/golangorgxremove unused packages@mvdan7fa5fc5
  • internal/core/subsumeaccount for patterns and ellipses of closed values@mvdane7067f8
  • internal/core/subsumetest closed structs with patterns and open lists@mvdand98853b
  • internal/cueexperimentremove IsPreview and ShouldRemoveAttribute@mvdan93cd0b0
  • internal/{cuedebug,cueexperiment}drop stale envflag-era comments@mvdane929922
  • internal/cuedebugfold in internal/envflag@mvdan094071a
  • internal/core/evalremove in favor of adt.NewContext@mvdan018c109
  • internal/core/runtimeabsorb internal/types@mvdan4dfe2a5
  • internal/encodingfold in internal/valuecodec@mvdan912a804
  • internal/mod/modimportsfold in internal/cueimports@mvdan89725fd
  • internal/filetypesfix FileInfo aspect comments@mvdan4712cae
  • internal/filetypesfold the internal package into filetypes@mvdan99f7b1a
  • internal/core/adtinsert a disjunct value with all of its declarations@mvdan710bd2f
  • internal/core/adtdecide definition crossing by where a reference resolves@mvdanc372d2e
  • internal/cueexperimentcache NewFile results by version@mvdanb74cb92
  • internal/filetypesavoid go-cmp options in TestDriverMatchesCUE@mvdanee5d191
  • internal/filetypescache oracle toFile results in TestDriverMatchesCUE@mvdanaad7502
  • internal/cuetxtaronly parse eq bodies with shareID for shareID groups@mvdanf5ee445
  • internal/cuetxtarbuild expected literals directly in cmpFinal@mvdan0c6e34f
  • internal/cuetxtarreuse the archive's context for permutations@mvdanb92db74
  • internal/golangorgx/gopls/test/integrationformat logged messages lazily@mvdanc7ee459
  • internal/golangorgx/gopls/test/integrationdrop the Experimental mode@mvdanbfbd5f8
  • internal/cuetxtarrun inline archives in parallel@mvdanf9a670e
  • internal/cuetxtarbuild @test(permute) orderings from the instance@mvdanaad1500
  • internal/cuetxtarindex @test records by path@mvdane96bb34
  • internal/core/exportrun TestDefinition archives in parallel@mvdan309bbbd
  • internal/cuetxtaronly format input files with CUE_FORMAT_TXTAR@mvdan36ebe6c
  • internal/filetypesshare one oracle per mode in TestDriverMatchesCUE@mvdancd6e780
  • internal/filetypesevaluate the FromFile oracle as one expression@mvdanc0d4e7f
  • internal/filetypescache tag values in TestDriverMatchesCUE@mvdan818a3dc
  • internal/prettykeep comments inside and before operands in place@mvdan614bce7
  • internal/prettykeep comments before the closer of a struct or call@mvdan76891d3
  • internal/prettykeep blank lines and comments between clauses in place@mvdan0c27ce6
  • internal/prettydo not align rows sharing a line@mvdanabd1b30
  • internal/prettytest padding of fields sharing a line@mvdan38ac372
  • internal/prettykeep comments in interpolations and pattern labels@mvdan6873fc2
  • internal/prettykeep the grouping and comments of binary operands@mvdanb3863e6
  • internal/prettytest right-nested and commented binary operands@mvdan7663b18
  • internal/prettykeep doc comments and line breaks in braceless chains@mvdanef6b083
  • internal/prettytest braceless chains with inner comments or breaks@mvdancd85126
  • internal/prettybreak the line after a comment ending a row@mvdand0940f9
  • internal/toolsupdate x/tools for staticcheck on Go 1.27.2@mvdan90d8783
  • internal/encoding/yaml/goccytest documents holding only comments@mvdan62bca28
  • internal/encoding/yaml/goccytest decoding CRLF line breaks@mvdanb18f139
  • internal/encodingkeep file attributes first when adding a package clause@mvdancce68aa
  • internal/core/exporthonor experiments carried into the output@mvdane34c4f5
  • internal/cueconfighold the logins.json lock while reading@mvdan4e21874
  • internal/cueconfigtest concurrent reads and writes of logins.json@mvdan3bb389b
  • internal/core/adtvalidate shared nodes within hidden fields@mvdan3872ef0
  • internal/core/adtadd tests for errors in shared hidden fields@mvdanf12e015
  • internal/encoding/yaml/goccysimplify the rendering of scalars@mvdancd546f1
  • internal/encoding/yaml/goccykeep comments outside of flow collections@mvdan3a534c0
  • internal/encoding/yaml/goccyadd a test for comments on flow collections@mvdanc48b363
  • internal/encoding/yaml/goccykeep number literals only in core forms@mvdand1de3c4
  • internal/encoding/yaml/goccyadd a test for encoding number literals@mvdan6b5644a
  • internal/encoding/yaml/goccywrite keys over 1024 characters explicitly@mvdand8d7418
  • internal/encoding/yaml/goccyquote strings which decoders misread@mvdan1c62e83
  • internal/encoding/yaml/goccyavoid literal blocks which lose content@mvdanaaf91c9
  • internal/encoding/yaml/goccyquote strings which need escapes correctly@mvdanf5d0933
  • internal/encoding/yaml/goccywrite @yaml tags as valid YAML tags@mvdan2b3f351
  • internal/encoding/yaml/goccyadd tests for writing invalid YAML tags@mvdane62a668
  • internal/cireformat with cue fmt@mvdan2bc3bdf
  • internal/cuetxtarrun every allows assertion on a field@mvdanea1455d
  • internal/encoding/yaml/goccydo not flow-quote an embedded scalar@mvdan4014fb9
  • internal/encoding/yaml/goccykeep a tagged empty collection on one line@mvdanaa9a66e
  • internal/encoding/yamlrecord known YAML tag issues as TODOs@mvdan0e8b3cb
  • internal/encoding/yamlapply @yaml tags from declaration attributes@mvdan096aa70
  • internal/encoding/yamladd tests for @yaml tags in declaration attributes@mvdan92e2fed
  • internal/cidispatch unity via the gh CLI rather than curl@mvdan79e8169
  • internal/core/adtkey function call caches by the resolved vertex@mvdanc5333e4
  • internal/core/adtadd tests for function calls across disjuncts@mvdan14e4f17
  • internal/prettyprint a bare expression declaration's comments once@mvdancd86cbc
  • internal/prettyadd a test for repeating a bare expression's comments@mvdan6adbfc4
  • internal/core/convertlimit the nesting depth of Go values and types@mvdanb49a93c
  • internal/core/convertadd a test for nesting Go values and types without a limit@mvdan1a22324
  • internal/core/convertdo not alias an *apd.Decimal in FromGoValue@mvdan271a65a
  • internal/core/convertadd a test for FromGoValue aliasing an *apd.Decimal@mvdan0ffb19f
  • internal/core/convertencode nil pointers of any type as nil@mvdanda519e7
  • internal/core/convertadd a test for nil pointers panicking in FromGoValue@mvdanecfd5ab
  • internal/core/exportresolve dynamic field aliases to the innermost field@mvdan1927cea
  • internal/core/exportadd a test for a reused dynamic field alias@mvdan368183b
  • internal/core/exportexport let clauses in the scope declaring them@mvdandf732c7
  • internal/core/exportadd a test for a let clause used where shadowed@mvdan87520f0
  • internal/core/exportdo not share syntax nodes with the source@mvdan7562f16
  • internal/core/exportadd a test for editing exported syntax in place@mvdan415c340
  • internal/core/exportscope aliased fields to the struct declaring them@mvdan9a82013
  • internal/core/exportadd a test for a field alias exported twice@mvdanc36198a
  • internal/core/exportscope let clauses to the struct declaring them@mvdan72fad2d
  • internal/core/exportadd a test for a let used outside of its struct@mvdan7ebb4cd
  • internal/core/debugelide errors which contain the value being printed@mvdan588136d
  • internal/core/debugadd test for error() interpolating its own error@mvdan23d75bc
  • internal/citest a release in unity by its source commit@mvdan6c1cb79

pkg38

  • pkg/mathmake Pow return one for a zero exponent@mvdan1521072
  • pkg/mathadd Pow test cases with a zero base and exponent@mvdand1515f1
  • pkgremove the qgo tool@mvdan8e25c56
  • pkg/timecompute ToUnixNano without overflowing@mvdandb31288
  • pkg/timetest ToUnixNano with times beyond 64 bits of nanoseconds@mvdan9603691
  • pkgtest integer arguments beyond the range of their Go type@mvdan1269c95
  • pkg/toolremove the pkg/internal helper package@mvdan129b0b0
  • pkg/pathclean the result of Rel@mvdaneef3bea
  • pkg/pathtest Rel results which are not clean@mvdan258bc93
  • pkg/pathmake Windows Rel handle bare UNC shares@mvdan5e5fa0d
  • pkg/pathtest Windows Rel with bare UNC shares@mvdan5246c4e
  • pkg/pathfix Windows IsAbs on UNC shares and reserved names@mvdan11b19a5
  • pkg/pathtest Windows IsAbs on UNC shares and reserved names@mvdan2d4ac57
  • pkg/pathstop Windows Clean from creating absolute paths@mvdan18c4bfd
  • pkg/pathtest Windows Clean creating absolute paths@mvdan159b753
  • pkg/pathparse Windows volume names as Go does@mvdan537f2cb
  • pkg/pathtest Windows volume name parsing@mvdan8bd1d04
  • pkg/tool/httpsend Serve response trailers as trailers@mvdanc8b7fba
  • pkg/tool/httptest response trailers in Serve@mvdan5cb9e4d
  • pkg/tool/httpfill request trailers in Serve@mvdanb688748
  • pkg/tool/execcapture output as bytes when stdout or stderr is bytes@mvdanaee8941
  • pkg/tool/execcapture stderr even when stdout is not captured@mvdan861036f
  • pkg/tool/osfix environment variable task docs@mvdan2f32696
  • pkg/toolfix the Name doc comment@mvdan5050145
  • pkg/regexpdrop the unreachable "no named groups" error@mvdand8d4ba9
  • pkg/mathreject infinities and NaN when rounding to integers@mvdan87cc1ff
  • pkg/mathtest rounding infinities and NaN to integers@mvdan605564c
  • pkg/uuidmake ToInt decode the UUID's 128-bit value@mvdan26b5d65
  • pkg/uuidadd tests for ToInt@mvdan8b84e9a
  • pkg/pathdeclare "windows" as the os default of VolumeName@mvdanaf055c9
  • pkgcheck the values of declared parameter defaults@mvdan5ff4dfc
  • pkg/listtest Repeat with a count well below the limit@mvdan13dc968
  • pkg/listfix panics on comparators with indirect or missing fields@mvdan8e0ab6d
  • pkg/listadd tests for comparators with indirect or missing fields@mvdan3b93ad1
  • pkg/listreport comparator errors in Sort and IsSorted@mvdanb315ae1
  • pkg/listadd tests for comparator errors in Sort and IsSorted@mvdanc5a37c9
  • pkg/encoding/openapi, tools/flowstop catching panics which no longer happen@mvdan7055475
  • pkg/listcompute arithmetic functions over open lists again@mvdana6e93c7

private3

  • private/internal/projectionignore git stderr unless git fails@mvdan03d4746
  • private/internal/projectiontest git warnings on stderr@mvdan413b3b1
  • private/internal/projectionmatch path hints only at a path boundary@mvdane87b271

tools11

  • tools/flowmake all tests external@mvdan3c79091
  • tools/flowdo not fail the flow when a task returns ErrAbort@mvdan5e261ad
  • tools/flowadd a test for tasks returning ErrAbort@mvdanaecdb01
  • tools/fixkeep comments on a single embedding under a wrapper@mvdan416b80e
  • tools/fixadd a test for comments on a single embedding under a wrapper@mvdan347f7cc
  • tools/fixkeep comments on the argument of a hoisted close@mvdanf6056ca
  • tools/fixadd a test for comments on the argument of a hoisted close@mvdan7149c2a
  • tools/fixclose struct literals in embedded call arguments@mvdanc6b2ace
  • tools/fixadd a test for struct literals in embedded call arguments@mvdan0ff8fc9
  • tools/fixkeep the position of an expression wrapped in a builtin@mvdand765fd6
  • tools/fixadd tests for wrapping list elements followed by comments@mvdan83b1eab

Other9

  • allmove in-package tests to external test packages where possible@mvdan543eeeb
  • specs/ae566specify, plan, implement and review editor syntax support@cuematthewde9aad0
  • update protocompile to its master@mvdan3aedba8
  • update go-digest to its latest master@mvdan0c11398
  • update all dependencies to latest@mvdan3848c4a
  • mod/modregistryreturn nil from Module.Metadata without metadata@mvdan1bcf119
  • mod/modregistrytest Module.Metadata without metadata annotations@mvdana8215bd
  • cuegoreport an error for a nil value without leaving the package locked@mvdan3ee7c65
  • cuegoadd a test for a nil value leaving the package locked@mvdan6ad29d3

Downloads

Every file this release published, with its SHA-256. Most people install CUE as Installing CUE describes, which also shows how to check a download.

Installers

PlatformFile and SHA-256
macOS, Apple silicon and Intelcue_v0.18.0-rc.1_darwin_all.pkgf32015552c8ae00037d251a74e2dff2c73952ca1b906755f1f532d73b54b5891
Windows, x86-64cue_v0.18.0-rc.1_windows_amd64.msi265ad06e6277361361d98a8edcbd18e91cdc6e166530248d6550937dbdd35e1b
Windows, Arm64cue_v0.18.0-rc.1_windows_arm64.msic07cf518d8ad742698db3e63a6f32548e57b3bf40bf422b4ee01937eb621a7db

Archives

PlatformFile and SHA-256
macOS, Intelcue_v0.18.0-rc.1_darwin_amd64.tar.gz814dd2f7b6b2f1b07716b9f21e6d5b77ec00e5c8c63b9a5f92f20ee62f40e75d
macOS, Apple siliconcue_v0.18.0-rc.1_darwin_arm64.tar.gz8e6bbd80b657b87bbdb5a7c171f9c56bc881f44a9637af3dcdc0c2b951380c81
Linux, x86-64cue_v0.18.0-rc.1_linux_amd64.tar.gz7a2c37a5247baf7362617d09ef8e0c938633c5e771939dd45d8c3d88d6a3a361
Linux, Arm64cue_v0.18.0-rc.1_linux_arm64.tar.gzda6b95eed7ded8a34fed88339730fda3a87717dc7fb044b66ff87d2f3ab5ff3d
Windows, x86-64cue_v0.18.0-rc.1_windows_amd64.zipf1b12ff0a33a8a2064f9625dd4e59fb8c8f1d13f9d296858981f22d2a83cd1e5
Windows, Arm64cue_v0.18.0-rc.1_windows_arm64.zip58f33fc39cfd9bcf87965e3de75ffad845f055b5055c75320693decf27fb1eda

SHA-256 checksums for all of these: cue_v0.18.0-rc.1_checksums.txt

Install CUE