v0.18.0-rc.2

Pre-release Released

A release of CUE, published on cue.dev.

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

Warning

The cue-lang/tap Homebrew tap is retired. On macOS, install CUE Labs’ build with brew install cue-labs/tap/cue; see Installing CUE. For the open-source build, use Homebrew’s own formula, brew install cue. Existing installations from cue-lang/tap move to that formula on brew update; cue-lang/homebrew-tap has the details.

Language

A CUE file which belongs to no module can now declare the language version it is written for with a @version attribute, placed ahead of any other file attribute and the package clause, so that a reproducer or a standalone file written for an older version runs as written without creating a module for it. The attribute is an error in a file of a module which declares a language version, as the module file decides the version of its files. cue fix adds the attribute when it enables an experiment in such a file, recording the version the file was migrated at.

cue
@version(v0.17.0)

package p

The functions experiment

Warning

The experiment now follows the revised proposal on function contracts: an implementation unified with a function type must accept every argument the type admits, callbacks are checked where they are passed, and two function literals with different bodies no longer compose when unified, undoing the change announced in v0.18.0-alpha.3. Some configurations which evaluated before are now rejected; the proposal lists them and how to fix them.

Evaluator

A reference unified with a definition or with a disjunction of definitions, as in deps: [...#Node] with #Node: #Task | #Group, is now shared with the value it refers to rather than evaluated again under every path, so that a dependency graph typed this way is evaluated once per node rather than exponentially in its depth, regardless of the order in which the fields are declared (#4512, #4513).

Exporting a struct holding many unifications of empty or single-field structs no longer takes memory exponential in their number.

The != and =~ bounds and the builtin validators of a field in an inline struct or a let which is read through a reference, such as by an interpolation, are now checked, where they were silently dropped. This surfaces conflicts which earlier releases accepted, such as a let inside a definition which sets an integer on a field declared as a float with a default (#4510).

cmd/cue

The new cue mod upgrade command moves a module to a new language version, rewriting every CUE file of the module for that version, including those under cue.mod, before recording the version in cue.mod/module.cue. Files are rewritten without loading them, so a package whose import cannot be resolved is converted all the same, and a file which cannot be converted stops the upgrade before anything is written unless --force is given. cue fix without package arguments now fixes every file of the module the same way, from any directory inside it, and the explicitopen rewrite fixes several cases where it closed a value which the original left open.

The new --language-version flag of the commands which read CUE outside a module, among them cue eval, cue export, cue vet, cue fmt, cue fix, cue import, and cue get go, selects the language version for files which belong to no module, including standard input. It is only a fallback: the files of a module which declares a language version keep that version, and a file’s own @version attribute takes precedence. CUE generated by cue import, cue get go, and cue get crd targets the chosen version.

cue cmd now reports the errors within a command which declares no tasks, such as a comprehension or dynamic field which failed to declare them, alongside no tasks found (#3536). Its memory use no longer grows with the number of tasks which return a result, as tools/flow now releases each earlier configuration once the tasks depending on it have completed: the peak memory of a command running 40 such tasks drops from about 500MB to about 125MB (#4509).

LSP server

The language server now understands the function literals of the functions experiment. References in a function’s body, parameter constraints, defaults, and result type resolve, so go-to-definition, find references, rename, and completion work inside a function literal, and a rename of a parameter covers every literal unified with the function. The label of a labeled argument resolves to the parameter it binds, through references, imports, and partial applications, and completion at a call offers the callee’s labeled parameters. Hovering a parameter or a call label shows the parameter’s constraint, and a position inside a function literal is no longer treated as part of the value of the field the literal belongs to.

Encodings

The YAML decoder no longer swallows the key following a sequence which ends with an empty entry and is not indented relative to its own key.

The JSON Schema decoder no longer keeps a repeated allOf conjunct twice when merging changes it, such as a disjunction holding a nested allOf. The syntax returned by encoding/jsonschema’s Extract and ExtractCRDs and by encoding/protobuf’s Extract now follows the style of cue/format.Simplify, with labels unquoted where possible, so that Go API users see the same CUE that cue import prints (#4117).

Go API

cue/load.Config.LanguageVersion sets the fallback language version for input which belongs to no module, as the --language-version flag does, and the new cue/build.Instance.TargetLanguageVersion reports the version which cue.Value.Syntax targets for an instance.

Programs embedding CUE could be far larger than necessary, as the text/template builtin and cue/stats looked up methods by name, which stops the Go linker from discarding unused exported methods anywhere in the binary; one reported binary was 66MiB rather than 25MiB (#4514). cue/stats no longer does so, and building with the cuenotemplate build tag leaves the text/template package out of the standard library so that the linker discards unused methods again, at the cost of CUE code importing text/template failing.

All changes

275 changes since v0.18.0-rc.1by area

aec4f3

  • aec4fdocs: tag function-contracts-callers-providers-and-bridges@mpvl96ecaba
  • aec4fdocs: route to specify@mpvl9cb4f95
  • aec4fdocs: declare function-contracts-callers-providers-and-bridges@mpvlca5525d

all11

  • alldrop leftovers from fixed upstream bugs@mvdan47fe458
  • allbuild costly package-level values on first use@mvdanc90f88a
  • allbuild package-level paths without parsing them@mvdanf3d9171
  • alladd the @version file attribute for CUE outside a module@mpvl9afc1f2
  • allgenerate String methods which missed constants with stringer@mvdana01fa9b
  • allmark test helpers with t.Helper@mvdan2a8e390
  • alluse t.Context in tests@mvdane5e362a
  • alluse b.Loop in benchmarks@mvdan5a76449
  • allenable staticcheck's U1000 check@mvdandc6ac58
  • allmark deliberate uses of deprecated APIs@mvdanba4b73d
  • alluse internal/value.Context over the deprecated Value.Context@mvdand78f2c1

cmd27

  • cmd/cuetest mod tidy --check on an untidy module with a replace@mvdan80c573f
  • cmd/cuetest the login device flow in-process under synctest@mvdanc7b8aa5
  • cmd/cuetest that login polls once per interval@mvdan129cdd1
  • cmd/cuemake the get go Sizeof test independent of GOARCH@mvdana173f1e
  • cmd/cuepurge function bodies and literals before parsing for get go@mvdan91b3b42
  • cmd/cueskip a cue struct tag which is not a valid expression@mvdan55b1aa7
  • cmd/cuetest a cue struct tag which is not a valid expression@mvdanc1ad13b
  • cmd/cuetest the stats which cue def reports@mvdan35b46ef
  • cmd/cue/cmdbuild the registryconfig help text with fewer allocations@mvdanfcb66bf
  • cmd/cueadd --language-version for CUE outside a module@mpvl27bd1e1
  • cmd/cue/cmdrun the test binary as cue in TestInterrupt@mvdan27c7bbc
  • cmd/cue/cmdlocate pprof once in the pprof testscript@mvdan67f1c03
  • cmd/cue/cmdlet testscript Go builds hit the build cache@mvdan9d37f00
  • cmd/cue/cmd/integrationmove TestFormatFile into the workspace package@mvdanbd490f3
  • cmd/cue/cmd, pkg/tool/httpcompile two regular expressions lazily@mvdanf091c80
  • cmd/cuereport a command's errors when it has no tasks@mvdanb90b20f
  • cmd/cuetest cue cmd with comprehensions which fail to declare tasks@mvdand775dda
  • cmd/cue/cmdnote the Go version that lifts the TestVersion skip@mvdan49f8ca1
  • cmd/cue/cmdupdate pflag to drop the IsBoolFlag workaround@mvdancfbaed9
  • cmd/cue/cmd/integration/workspacemake test failures clearer@mvdan8dde008
  • cmd/cue/cmdfail TestInterrupt when the command ignores SIGINT@mvdane220300
  • cmd/cue/cmd/integration/workspacefix a log pattern that never matched@mvdan3d49447
  • cmd/cuefix copy-paste mistakes in tests@mvdan9748136
  • cmd/cueunhide cue mod upgrade@mpvl4ce395c
  • cmd/cueupgrade and fix every file of the module, loading nothing@mpvlf6f3ef5
  • cmd/cue/cmdreplace deprecated cobra SetOutput in tests@mvdanf060047
  • cmd/cue/cmd/integration/workspacetest two modules as folders@mvdan859b524

cue51

  • cue/buildremove Instance.parent, unused since 2018@mvdan96a74fc
  • cue/loadjoin relative package arguments as OS paths@mvdan6f0cb0b
  • cue/loadtest relative package arguments with a Windows directory@mvdanf120b87
  • cue/parserkeep the experiments error from ParseExpr@mvdan9f52fc0
  • cue/parserreturn a partial result from ParseExpr on error@mvdanf675ba8
  • cue/parseradd a test for the result of ParseExpr on error@mvdan45f83f5
  • cue/parserrecover from an empty index expression@mvdaneceb203
  • cue/parseradd tests for an empty index expression@mvdan4521c99
  • cue/parsermark a line comment at the end of a file@mvdan8c3f924
  • cue/parseradd a test for a line comment at the end of a file@mvdane5fdcfc
  • cue/literalquote DEL as \x7f in bytes literals@mvdanfaee5c0
  • cue/literaldo not panic on a surrogate escape in an unterminated string@mvdan835795d
  • cue/literaladd a test for a lone surrogate escape in Unquote@mvdand21508c
  • cue/scannergive a specific error for curly quotation marks@mvdan859b287
  • cue/scannerreport a specific error for UTF-16 input@mvdan6a70da3
  • cue/scanneradd a test for scanning UTF-16 input@mvdanfc0431b
  • cue/scannerreset all state in Init@mvdand2153de
  • cue/scanneradd a test for Init not resetting all state@mvdan37f1922
  • cue/testdatatest unifying separately tightened builtins@mvdan49f1ddc
  • cue/testdatatest a deduplicated disjunct keeping its replaced IDs@mvdanf527807
  • cuedecode integers into uintptr@mpvl25b5e42
  • cue/statscount the edges requested when sorting fields@mvdan5003673
  • cuecount the contexts which export a value in the stats totals@mvdan5bd2aad
  • cue/testdatatest the cost of a dependency graph typed by a definition@mvdana40f6be
  • cuesee through structure sharing in Value.Err and Value.Len@mvdan74c32e7
  • cue,cmd/cuetest Err and Len through structure sharing@mvdan35b3ef5
  • cuetest exporting a closed definition after a skipped definition@mvdan2d8b7d3
  • cue/loadadd Config.LanguageVersion for CUE outside a module@mpvl1e96882
  • cue/cuecontexttest dead code elimination in an embedding program@mvdan0f4cbc0
  • cue/statswrite Counts.String without text/template@mvdan1e1eb5d
  • cue/astextend a function literal missing its ")" to its last parameter@cuematthew6d7d3b1
  • cue/astrecord where a function literal missing its ")" ends@cuematthew3384ec7
  • cue/parsertest nesting depth limits just past them@mvdan08ee361
  • cue/loadstop adding overlay parent directories once one exists@mvdan7fb23c4
  • cue/inject/wasmstop reading the deprecated ast.Func.Args field@mvdanb63e6d9
  • cue/loaddrop or fix two checks which tested the wrong variable@mvdan3d33679
  • cue/testdata/evaltest validators of a used scalar of an inline struct or let@mvdan44ec0a9
  • cue/errors,unstable/encodingregistrydescribe tests in the present tense@mvdan013574a
  • cue/formatkeep [string]: _ where string may be shadowed@mvdan7e46530
  • cue/formattest the Ellipsis rewrite with string bound locally@mvdanc7ec4c4
  • cue/formatkeep import and package quoted at the top level of a file@mvdand8d6238
  • cue/formattest unquoting import and package labels at the top level@mvdan6276ac1
  • cuefix checks in Decode, Default, and LookupPath tests@mvdan437fecb
  • cue/parserremove empty table tests@mvdanc8d122a
  • cue/inject/wasmreturn errors from the testscript setup@mvdan9858c77
  • cue/...fix copy-paste mistakes in tests@mvdan52eea81
  • cue/loadkeep every package a wildcard matches@mpvl6ae2acc
  • cue/loadtest that ./... keeps the packages it matches@mpvld7bf40b
  • cue/literalkeep the leading zero of a signed number@mvdane80490b
  • cue/literaltest parsing zeros with a sign or multiplier@mvdan06e3b9e
  • cue/parserremove the no-op safePos@mvdanb486e89

encoding15

  • encoding/yamltest an empty entry ending an unindented sequence@mvdan86e457d
  • encoding/jsonschemamerge a conjunct before checking for duplicates@mvdanfc6c9f4
  • encoding/jsonschematest a repeated conjunct holding a nested allOf@mvdan32f9bc8
  • encoding/jsonschemamove the struct builder to an internal package@mvdan9ee77f2
  • encoding/jsonschemacover allOf merging and version sets via txtar@mvdan977626f
  • encoding/jsonschemabuild each external test instance once@mvdan0de23ee
  • encoding/jsonschemafix the errors for dependency values of wrong kinds@mvdancab7b34
  • encoding/jsonschematest dependency keywords given the wrong kinds@mvdan7f651a9
  • encoding/jsonschemakeep test skips found by description when vendoring@mvdanb04bb8e
  • encoding/protobufproduce syntax in the style of format.Simplify@mvdan9fadf8c
  • encoding/jsonschemaproduce syntax in the style of format.Simplify@mvdan55b172e
  • encoding/protobuf/...stop tests after a reported error@mvdane046061
  • encoding/jsonstop a pointer test from panicking on a nil error@mvdan2c4740f
  • encoding/...fix copy-paste mistakes in tests@mvdan38a5057
  • encoding/jsonschemaremove unused code@mvdan4b92149

internal97

  • internal/cuetest, internal/tdtestremove helpers unused for a year@mvdan7f4677e
  • internal/mod, mod/modcache, internal/robustioremove dead code@mvdanea80d96
  • internal/encoding, encoding/jsonschemaremove code unused for a year@mvdan36d7c48
  • internal/core, internal/pkgremove code unused for over a year@mvdan3522302
  • internal/core/adtremove code unused for over a year@mvdan1e995c0
  • internal/mod/modloadkeep the not-tidy error with a module replace@mvdan753c83a
  • internal/cueconfigsend token requests without client credentials@mvdan606fb98
  • internal/golangorgx/gopls/lsprpcstop dialing when the context is done@mvdan03fa39c
  • internal/golangorgx/gopls/lsprpctest dialing with a done context@mvdan9048c82
  • internal/golangorgx/gopls/lsprpcdial auto-started daemons with backoff@mvdane2bf2cd
  • internal/lsp/cachesize Windows path buffers in UTF-16 units@mvdan1829683
  • internal/core/compileshare the predeclared numeric ranges@mvdanb9aa65e
  • internal/core/adtremove TestScheduler and the code only it reached@mvdan0709bc1
  • internal/core/adttest the empty node externally@mvdan1d22156
  • internal/core/adtcheck the counter indices of conditions at compile time@mvdan9adfd58
  • internal/core/adtmove tests on the exported API to adt_test@mvdan9952347
  • internal/core/adtcompare function types nested in parameters@mpvlb1a2a67
  • internal/core/adtreport errors arising in a call at the calling field@mpvld68b47c
  • internal/core/adtdo not unify distinct function implementations@mpvld234ba1
  • internal/core/adtremove ExternalFunc@mpvl9679491
  • internal/core/adtcheck callback entitlement and declare builtin results@mpvlb74d3b8
  • internal/core/adtcheck declared compatibility of function implementations@mpvl44378c9
  • internal/core/toposortkeep the frontier between batches free of duplicates@mvdanf4f95c1
  • internal/core/toposorttest sorting fields across empty unifications@mvdand14052b
  • internal/core/toposortrecord export stats in the txtar tests@mvdan998da54
  • internal/core/adtfinalize a shared forward reference before a disjunction@mvdan2c65d6f
  • internal/core/adtstop evaluating a disjunct's arcs once one fails@mvdan1de060c
  • internal/core/adtkeep sharing through a disjunction of types@mvdanc065604
  • internal/core/adtkeep sharing a reference unified with its definition@mvdanf5c2707
  • internal/cuetxtaradd the shareID:todo form of the sharing assertion@mvdan34828dc
  • internal/core/adtprint rune by name@mvdaneafc399
  • internal/core/exportqualify shadowed predeclared numeric types@mvdan0019bfc
  • internal/core/exporttest the printing of predeclared numeric types@mvdan7d2b95a
  • internal/core/exportbalance inDefinition when skipping struct fields@mvdan9fb6803
  • internal/core/adtfix two discarded return values@mvdanbdcf2bf
  • internal/golangorgx/goplsfold pathutil into protocol@mvdan1d144d4
  • internal/core/adtcomplete nodes read through a let once the referrer is known@mvdand8302e9
  • internal/mod/modpkgloadstat a path which fails to read as a directory@mvdan9cc46dc
  • internal/mod/modpkgloadtest a submodule file on a non-OS file system@mvdan1d97f85
  • internal/mod/modpkgloadtreat ENOTDIR as no directory@mvdanaba4303
  • internal/mod/modpkgloadtest a file at the path of a submodule@mvdan92a339d
  • internal/lspreport @version attributes in module files@mpvl22097e2
  • internal/core/adtwrite the debug graph page without html/template@mvdan334aac7
  • internal/lsp/hovershow parameters and stop at function literals@cuematthew2e8403a
  • internal/core/adtshare forward references into closed structs@mvdan362a869
  • internal/core/adttest sharing of a forward reference into a closed struct@mvdan93ef534
  • internal/tdtestfind table entries without go/packages@mvdan5b5b7e1
  • internal/vcsignore the system git config in TestEnv@mvdanae63210
  • internal/cuetxtarpropagate field coverage with a worklist@mvdanf9d6da6
  • internal/cuetxtarpermute compiled declarations instead of the AST@mvdanea3415b
  • internal/vcsdisable git's auto maintenance in TestEnv@mvdan2243ce3
  • internal/cuetestmove CUE_FORMAT_TXTAR into its only user@mvdande54659
  • internal/cidrop the CUE_UPDATE=1 cross-check run@mvdan022703e
  • internal/cuetestunexport the update-only and drop the diff-only predicate@mvdan49c73b6
  • internal/cuetestroute every golden update through shared sinks@mvdanac26e24
  • internal/astinternalappend to the debug output without fmt@mvdanfb0586c
  • internal/ci/checksread the commit with a single git command@mvdan74b5a97
  • internal/golangorgx/tools/jsonrpc2write each framed message at once@mvdanea60d50
  • internal/mod/modpkgloaduse path.Join for an io/fs symlink stat@mvdan0238d9c
  • internalfix two unhelpful panic messages@mvdan9c06f3e
  • internal/core/compileresolve "__" range aliases in LookupRange@mvdan79fdc67
  • internal/tdtestload dependencies from export data@mvdan46f7b72
  • internal/tdtestreport mismatches whose field cannot be named@mvdanaccc301
  • internal/tdtesttest mismatches whose field cannot be named@mvdan8edd49b
  • internal/tdtestfix updating integer fields and rows without keys@mvdan5d8e794
  • internal/tdtesttest updating fields@mvdand9e96ae
  • internal/cuetxtarread the body of the CUETXTAR_GC_URI response@mvdanf00bd76
  • internal/core/adtcheck validators of a scalar once its conjuncts are in@mvdanea10fd2
  • internal/encodingdo not mutate the caller's Config in NewDecoder@mvdan4294380
  • internal/encodingtest that NewDecoder keeps the caller's Config@mvdan3b540fd
  • internal/encoding/yamlreturn errors for invalid literals@mvdanb2564e7
  • internal/encoding/yamltest encoding invalid number and string literals@mvdand84cf68
  • internal/core/adtwrap a failed dynamic field key's error once@mvdan6482e2e
  • internal/ci/checksmark test helpers with t.Helper@mvdan300c321
  • internal/core/export,pkg/internal/builtintestdo not modify export.All@mvdan236029e
  • internal/diffrequire memoization to fire in TestMemoization@mvdanc336b8c
  • internal/taskmake two test checks able to fail@mvdan06e92f8
  • internal/core/adtremove the unused DebugDeps flag@mvdanc2bada3
  • internal/lsp/rangesetcompare TestAdd against literal ranges@mvdan45d613a
  • internal/lsp/fscachedrop a token.File check which cannot fail@mvdan3112331
  • internal/httplogclose test servers@mvdan5f80f2e
  • internal/anyuniqueremove a test which only exercises maphash@mvdanee2d80f
  • internal/cuetdtestforbid tests from enabling table updates@mvdan0a1439a
  • internal/cuetxtarremove a duplicate test case@mvdanac2c33f
  • internal/_e2efix copy-paste mistakes in tests@mvdanecf133f
  • internal/core/...fix copy-paste mistakes in tests@mvdane4dc43a
  • internal/taskdo not keep a task's value in its runner@mvdan2722e9a
  • internal/tasktest that a chain of tasks releases earlier configurations@mvdan4c0bbb5
  • internal/core/adtclear the buffers of recycled nodeContexts@mvdan65c4ef4
  • internal/core/adttest that an OpContext releases earlier evaluations@mvdan77402f1
  • internal/mod/modimportslet AllModuleFiles take options@mpvld6710f2
  • internal/core/convertkeep every digit of a big float@mvdana18d4b9
  • internal/core/converttest converting precise big floats@mvdanf5c5ea7
  • internal/pkgreport marshaling errors without a CUE error@mvdan7624017
  • internal/valuedo not allocate in Context for a cue.Value@mvdanc1c0261
  • internal/cuetxtarremove unused position formatting hook@mvdan1f1d787
  • internal/core,tools/trimremove unused code@mvdan540a560

mod6

  • mod/modregistrytestadd Www-Authenticate via ociserver's WriteError@mvdan955cedd
  • mod/modulecheck the major version with no regular expression@mvdancf11371
  • mod/modconfigmove the User-Agent transport out of internal/cueversion@mvdanf52adf8
  • mod/modconfigclose test servers and avoid a hang on failure@mvdanb374fdb
  • mod/modcachedo not call FailNow from fetch goroutines@mvdan0c7e2b6
  • mod/modfilefix copy-paste mistakes in tests@mvdanc7062d5

pkg10

  • pkg/tool/filetreat a path below a file as missing in RemoveAll@mvdana658cc9
  • pkg/tool/filetest RemoveAll on a path below a file@mvdanf48e2fa
  • pkgadd a cuenotemplate tag so the linker can discard unused methods@mvdan80c756a
  • pkg/listturn the Range Go tests into a txtar case@mvdan4ffffc9
  • pkg/encoding/openapiturn TestMarshalSchemaError into a txtar case@mvdan62051ab
  • pkg/mathtake the MultipleOf remainder in the exact context@mvdan8021f66
  • pkg/tool/fileremove dangling symlinks in RemoveAll@mvdan54f782b
  • pkg/tool/filetest RemoveAll on a dangling symlink@mvdan982a9e5
  • pkg/...fix copy-paste mistakes in tests@mvdan41d546e
  • pkg/encoding/openapireplace deprecated openapi.Gen@mvdane8ab5ba

private12

  • private/cmd/projectorupdate scripts via cuetest.UpdateScripts@mvdanfa9847c
  • private/internal/projectionconfigure fixture git globally in tests@mvdanb886644
  • private/internal/projectionlist HEAD's blobs once in the agreement test@mvdan59d8aaf
  • private/internal/projectionrun the build gate only in its own tests@mvdanb019626
  • private/encoding/cue/wiredescribe tests in the present tense@mvdana22c95d
  • private/internal/projectionmake the classify/lint agreement cases real@mvdan7bf00f9
  • private/cmd/projectorexit 2 on usage errors@myitcva8e27fe
  • private/cmd/projectorvalidate directory expansion and JSON output@myitcv94c0a48
  • privatereport classification provenance in classify answers@myitcv3fac991
  • private/cmd/projectorcomplete the classify output goldens@myitcvc012d26
  • private/cmd/projectorsupport updating the script test goldens@mvdan4a3bbf8
  • private/internal/projectionstop creating release tags@mvdand79bfd4

specs12

  • specs/aec4frecord the second to fourth review rounds@mpvl6a5e51b
  • specs/aec4fprocess review comments and record the posting-ready proposal@mpvl4f60300
  • specs/aec4fdisallow composing distinct implementations (D-005)@mpvl9909ffa
  • specs/aec4frecord increment 2 and reconcile the catalog@mpvlba3b390
  • specs/aec4frecord the first increment and reconcile the catalog@mpvl018bee1
  • specs/aec4f/specifyspecify function contracts@mpvl0a64f4a
  • specs/aeeg6specify language version selection for CUE outside modules@mpvl6044db6
  • specs/adn4breconcile the catalog@cuematthewac0831e
  • specs/adn4bspecify and plan functions in the LSP@cuematthewe5e3684
  • specs/ad41p/tasksrecord the completed validation phase@myitcv7377da0
  • specs/ad41p/tasksreconcile the task list with the landed code@myitcv0c11799
  • specs/acqavtag releases by hand rather than from declarations@mvdanaaf4e15

tools10

  • tools/fixrecord @version when adding an experiment outside a module@mpvl9d04fa3
  • tools/fixwiden closings below an open literal or a definition path@mvdan0022433
  • tools/fixadd tests for closings below an open literal or a definition path@mvdan4270366
  • tools/flowfix a goroutine leak and a panic in tests@mvdan3c129a0
  • tools/flowrelease earlier configurations as tasks complete@mvdan81d8907
  • tools/flowtest that earlier configurations are released@mvdan214cf0b
  • tools/fixadd the missing out/errors.txt sections@mvdan475efc3
  • tools/fixleave a definition's aliased body unwrapped@mpvlaa9c4d5
  • tools/fix,cue/ast/astutilreport every file that fails, not just the first@mpvl4d25b08
  • tools/fixmaintain the out/errors.txt section of the fix archives again@mvdan504e5c5

unstable7

  • unstable/lsp/evalresolve labeled arguments to parameters@cuematthewd1beecf
  • unstable/lsp/evalreplace exactly the path element a completion is for@cuematthew5b058cb
  • unstable/lsp/evalrecord completion ranges for path elements@cuematthewddaf4e1
  • unstable/lsp/eval, internal/lspresolve names inside function literals@cuematthew5b0e6ef
  • unstable/lsp/eval, internal/lsprecord behavior inside function literals@cuematthew07245e8
  • unstable/lsp/evalassert non-nil values before using them@mvdan2c9c0ac
  • unstable/...fix copy-paste mistakes in tests@mvdana3ef0ca

Other14

  • update goccy/go-yaml and go-internal to their latest master@mvdandd012c0
  • ee/cue/gofuncregister Go functions as builtins with declared signatures@mpvlcf63707
  • adn4bdocs: declare functions-in-the-lsp@mpvl0c58f7e
  • update apd to its latest master@mvdanef2ee05
  • update apd to its latest master@mvdanceb2e98
  • CONTRIBUTING.mddefine an agreed approach and ask for reproducers@mvdan474e2a8
  • update x/tools to its latest master and staticcheck to v0.8.2@mvdane6c8a6a
  • update go-digest to its latest master@mvdan563ad1f
  • CLAUDE.mdnote the Go version that lifts the go mod tidy workaround@mvdan9a0a6da
  • CLAUDE.mdpoint at the classify query for debugging the lint@myitcvd1c9dd6
  • .claude/skills/projectionuse the bot accounts for two pushes only@mvdan3eca855
  • ae052record the implementation, the reviews and the corpus runs@mpvld1a71a1
  • ae052specify and plan cue mod upgrade for real modules@mpvlc4cba59
  • .claude/skills/projectionpush as the project's bot accounts@mvdan151162c

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.2_darwin_all.pkge1a3298bd568244032cbedebcdae132fa23a5aebd14903c361afa15fb28579bd
Windows, x86-64cue_v0.18.0-rc.2_windows_amd64.msica4678931aabcbade80acdba19d3ee3ed00d9c2c4da786a61aaff133fef4acae
Windows, Arm64cue_v0.18.0-rc.2_windows_arm64.msi4b63b38e908264c3b14c6b86e79eecf4f3b44fb12ec96f2deee24c07fb227709

Archives

PlatformFile and SHA-256
macOS, Intelcue_v0.18.0-rc.2_darwin_amd64.tar.gz6e908054791da5aeb8e18307d1cf8e67b4fe7489f7eabd2bdc5e5af81dc14836
macOS, Apple siliconcue_v0.18.0-rc.2_darwin_arm64.tar.gzba3af8cd79bd0b9ec0890d6914668254939ef117a1a9fbc0fb1749d23455010e
Linux, x86-64cue_v0.18.0-rc.2_linux_amd64.tar.gz5aec8ac2f66cb6377ddc92f3af5b1c44a19fba318b676a5be962b3ec11b61569
Linux, Arm64cue_v0.18.0-rc.2_linux_arm64.tar.gz47193ba48743a8bc95565fc35035c7b8cedf3d224273b0baddf829b84b7ef267
Windows, x86-64cue_v0.18.0-rc.2_windows_amd64.zipb71c10b27a18645ffa89b36ac247e9d9558aa272caae162d458b9ca856182dcd
Windows, Arm64cue_v0.18.0-rc.2_windows_arm64.zip8b7c7a509cefcc7e44a49caeaa3495586b57a1d3c9771d515148dfad19410694

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

Install CUE