v0.9.0

cue-lang/cue Released

A release of CUE OSS · its page on GitHub

This release includes major changes to Modules and the Evaluator, as well as many other fixes and improvements. A special thanks to Noam Dolovich for numerous contributions to this release!

Modules

Following the Modules proposal v3 being accepted, the modules experiment is now enabled by default in this release. It should no longer be necessary to set CUE_EXPERIMENT=modules, and CUE_EXPERIMENT=modules=0 can be used to disable the experiment. We are not aware of any significant regressions, so please file a bug if you find one.

We have published an FAQ page which should help modules users with the upgrade to v0.9. We will add to this page over the coming weeks to ease the transition into the “new” modules mode.

This release also includes experimental support for the CUE Central Registry at https://registry.cue.works. We have added a cue login command to log into the Central Registry via a GitHub account, and other commands know how to use these credentials when talking to the registry.

To get started with the Central Registry, we have published a tutorial on working with modules and the central registry as well. We will share more details about the Central Registry and support for other login mechanisms in the future. For now, we are looking to get early feedback.

The CUE schema for cue.mod/module.cue is now dictated by the declared language.version value, which is now mandatory. This allows us to change or tighten the schema with future CUE versions without breaking existing users. Use the new cue mod fix command to add the field.

cue mod publish now requires source to publish a module, as described in Proposal 3017. The cue mod init --source flag is added to create a new module with this field.

cue mod publish now includes VCS metadata in published module versions, as described in Proposal 3057.

The cue mod fix command is added, which allows fixing up old cue.mod/module.cue files; see cue help mod fix.

The cue mod edit command is added, which allows some automatic editing of cue.mod/module.cue from the command line; see cue help mod edit.

CL 1193289 teaches $CUE_REGISTRY about a special none registry, causing any matching modules to refuse to fetch or resolve.

CL 1195546 teaches cue mod publish to include a LICENSE file from the VCS repository root if the CUE module subdirectory has none.

CL 1194090 adds the --dryrun, --json, and --out flags to cue mod publish to inspect what would be published as part of a module version.

CL 1194106 adds the cue mod resolve command to show how a module path resolves to a registry in the form of an OCI reference.

CL 1185280 adds cue help modules as a high-level overview of CUE modules.

CL 1194669 restricts the parsing of cue.mod/module.cue files to data-only mode, forbidding any references or comprehensions which may break cue mod commands or cause other issues.

As a reminder, the ongoing and planned work can be seen in the Modules Roadmap.

Evaluator

The new evaluator can now be enabled in the command line via CUE_EXPERIMENT=evalv3, and in the Go API via cuecontext.EvaluatorVersion(cuecontext.EvalV3). The new evaluator already includes a new disjunction algorithm as well as initial structure sharing support; note that structure sharing can be disabled with CUE_DEBUG=sharing=false.

The work is not yet complete, and some known bugs remain, but over 95% of the existing tests are passing and the performance already looks promising. Work on this new evaluator will continue during the next release cycle. We will only turn on the new evaluator by default once we are reasonably confident that there are no significant regressions.

CL 1185458 ensures we detect permanent errors for undefined fields earlier, necessary for the permanent errors fix in tools/flow below.

Subscribe to the Performance umbrella issue for updates, and see the Evaluator Roadmap project for the planned work ahead.

Encodings

The Encodings project was kicked off at a recent CUE Community Update call. As part of this, we now have an #encodings channel on Slack and Discord, as well as an Encodings Roadmap project on GitHub where the ongoing and planned work can be seen.

In this release, the new YAML decoder is available in experimental form and enabled by default, given that all of our tests are already passing. You can disable it via CUE_EXPERIMENT=yamlv3decoder=0. The old YAML decoder will be removed in a future release once we’re reasonably confident that no significant regressions are present.

CLs 1193257, 1193394, 1193576, and 1193577 greatly speed up internal/filetypes, used when loading files from disk in cue/load or when encoding/decoding files in cmd/cue.

CL 1193678 teaches cue/load to cache loading files from directories, which avoids repeated work when loading parent directories to form instances.

The changes above, plus cue.Value.IsNull below, should result in a significant speed-up for cmd/cue as well as cue/load when loading many CUE packages or directories. For example, on the main CUE repository, cue fmt ./... went from ~14s to ~0.1s, and cue vet ./... went from ~5s to ~2s.

CL 1193639 teaches internal/filetypes to only load its embedded CUE on first use, allowing any Go programs to skip the ~6ms load time until the first call to a cue/load API, if any.

CL 1195047 fixes the decoding of YAML 1.1 octal numbers so that they no longer result in invalid CUE literals.

cmd/cue

CL 1189314 adds a cue fmt --check flag to list badly formatted files rather than modifying them directly.

CL 1193778 adds a cue fmt --diff flag which displays diffs instead of updating files.

CL 1193962 adds a cue fmt --files flag to interpret the arguments as file paths to walk and recursively format rather than package patterns.

CL 1192180 speeds up cue fmt by ensuring that it only processes each CUE file once, rather than formatting files from parent directories as well.

CL 1185356 tweaks cue/load so that cue fmt is able to format CUE files given directly as arguments even when they belong to different packages.

CL 1193702 ensures that cue get go always generates CUE code from Go time.Duration types and values in a way that is fully compatible with Go’s encoding/json library. CL 1193386 fixes cue fmt --simplify to no longer break complex labels by unquoting string literals within them.

CL 1193934 improves cue fmt so that it does not write to files on disk which are already well formatted.

CL 1194247 tweaks cue help so that it correctly fails when given unknown help topics or commands.

CL 1185473 deprecates the short-form cue somecmd in favor of cue cmd somecmd, as the former caused a number of bugs and slowness when working out which subcommand to execute.

Go API

CL 1193405 adds a cue.Value.IsNull method to mirror cue.Value.Null without constructing error values, making cue.Value.Decode faster in many scenarios, including its use in cue/load via internal/filetypes.

CL 1191227 adds a cue/token.File.Lines getter method, much like go/token.File.Lines was added in Go 1.21.

CL 1193030 ensures that cue/load.Instances always returns instances in a deterministic order, in particular when multiple instances share the same directory.

CL 1194421 fixes a memory leak where using load.Instances to load CUE modules would increase the size of a global cue.Context until the process was terminated.

CL 1187452 teaches tools/flow to fail when a task encounters a permanent error, which were being ignored before.

CL 1191226 teaches cue/literal.ParseNum to support both positive and negative signs for consistency.

CL 1194410 fixes cue/load so that it errors on empty string arguments once again.

CL 1193515 fixes an edge case where cue/format would vertically align fields at different struct levels.

CL 1193585 fixes a bug where cue/format would print trailing commas for list elements after any inline comments, causing broken syntax.

CL 1193759 teaches cue/format to collapse empty lists and structs to a single line for consistent formatting.

CL 1185361 deprecates cue/load.Config.StdRoot, which has not worked as advertised for some time.

CL 1185684 removes the last remaining bits of API which supported quoted identifiers, which had already been deprecated and largely unsupported for years.

Builtins

CL 1193242 teaches encoding/yaml.Unmarshal to reject trailing input, just like encoding/json.Unmarshal already did.

CL 1184631 fixes using math.MultipleOf as a validator function.

CL 1193690 fixes math.MultipleOf as it had an incorrect implementation which could easily return bad results.

CL 1194165 fixes invalid builtin calls so that they correctly result in a “bottom” error.

CL 1194515 fixes structs.MinFields and structs.MaxFields to ignore optional fields, matching the documented behavior.

All changes

422 changes since v0.8.0by area

all20

  • alluse ocimem in its immutable form in all tests@mvdanf23bb9f
  • allremove the last remnants of the old :: definition syntax@mvdan570b83b
  • allreplace internal.GetPackageInfo with File.PackageName where possible@mvdan7ab8002
  • alldrop '// import' canonical path comments@mvdan9e1ffaa
  • allresolve unused value and yoda conditionals staticcheck warnings@mvdanfca1bcc
  • alltidy up deprecation warnings a bit@mvdana6a7002
  • allresolve a handful of linter warnings@mvdan3ce48c0
  • allremove various cue.Value.Lookup usages@NoamTD3818528
  • allvarious very small cleanups from gopls and staticcheck@mvdan96f16f0
  • allremove last usages of ast.Node.{Comments,AddComment}@NoamTD4ae7530
  • alladd language.version to module.cue files@rogpeppe690add3
  • alltidy up a number of leftover Go mentions@mvdan495feee
  • allapply cue fmt as of v0.9.0-alpha.4@mvdanb2dd75a
  • allremove some unused code and other minor cleanups@mvdan6132343
  • alldon't use XXX strings unnecessarily@mvdan506a0e8
  • allprevent duplicate filenames in testscripts@jpluscplusma835fb5
  • allcue fmt@mvdan058ab7c
  • allreplace sort.Sort and sort.Slice with slices.SortFunc@mvdanb545df2
  • allremove a few uses of fmt.Sprint@mvdan65b948a
  • allremove manual work via //go:generate stringer@mvdan64c9b62

cmd79

  • cmd/cuesuggest cue mod fix when language.version is missing@mvdana229224
  • cmd/cueadd testscripts for backwards and forwards module compatibility@mvdan2cc2c44
  • cmd/cuetest publishing a module with no major version suffix@mvdand3c72bf
  • cmd/cueadd sanity check that 'cue mod publish' is idempotent@myitcv604c577
  • cmd/cueremove CUE_VERSION_OVERRIDE from testscripts@mvdanc372c04
  • cmd/cueensure module is tidy before 'mod publish' publishes@mvdanb6278c4
  • cmd/cueadd a test for cue mod publish on a non-tidy module@mvdan0c3a848
  • cmd/cuesuggest cue mod tidy when --check says "not tidy"@mvdan245837e
  • cmd/cuecorrect spelling of dry run flag@myitcv6bbbb9c
  • cmd/cuecopy LICENSE files from VCS root where non exists in module@myitcv19e990d
  • cmd/cuerework mod publish with git test@myitcv0a1900c
  • cmd/cuedo not require source to be set for v0.8 language.versions@mvdan73a1c2d
  • cmd/cueadd test cases for publishing with older language.versions@mvdanb03dd62
  • cmd/cuerewrite help environment to be more explicit@mvdan3e19519
  • cmd/cuedo not output digest in mod publish@myitcv6cd7bbf
  • cmd/cueremove 'experimental' guard on modules (commands)@myitcv70832e6
  • cmd/cueuse a consistent directory structure for the modules cache@mvdan21ae0ad
  • cmd/cuecheck the structure of CUE_CACHE_DIR after downloading modules@mvdand94b670
  • cmd/cueremove unnecessary modules env var lines in testscripts@mvdan4cdaa5d
  • cmd/cue/cmdadd more package pattern wildcard test cases@mvdana7c3e38
  • cmd/cueadd test for issue 3155@rogpeppe0b4d17a
  • cmd/cueadd more test cases for package resolution@rogpepped187b40
  • cmd/cueget the working directory once at init time@mvdan9394167
  • cmd/cueadd a regression test for issue 2704@mvdan46feda5
  • cmd/cueensure that fmt works outside a module with files too@mvdan11cbcd3
  • cmd/cueadd mod fix command@rogpeppe4575558
  • cmd/cuemove Dockerfile to the main package directory@mvdane801994
  • cmd/cuerepurpose exitOnErr into printError@mvdane9bf33c
  • cmd/cueadd cue fmt --files mode@NoamTD336a991
  • cmd/cuereplace most fatal exitOnErr calls with error returns@mvdan6c5f6e7
  • cmd/cuean empty string is neither a valid package nor file@mvdana7bdc24
  • cmd/cueno need to buffer an error to print to stderr@mvdand5802f6
  • cmd/cueremove TestHelp in favor of testscript@mvdan3977e0c
  • cmd/cueimprove cue vet examples' argument order@jpluscplusmfbe004d
  • cmd/cueexpand cmd_filetypes.txtar with more edge cases@mvdan72319e4
  • cmd/cuerefer to 'workflow commands' instead of 'commands'@myitcv65ed76d
  • cmd/cuefail when requesting a missing help topic@mvdan1be0b0f
  • cmd/cueuse cue/parser and cue/format directly in fmt@mvdan6d50092
  • cmd/cueadd tests that cover fmt on various filetypes@mvdan7e0fbec
  • cmd/cuefail cue fmt if arg import path doesn't exist@NoamTDd9c5ae0
  • cmd/cuedocument -ldflags for local release builds@mvdanf9c2de9
  • cmd/cuenew "mod resolve" command@rogpeppe59a0d3c
  • cmd/cueadd dry run flag to cue mod publish@rogpeppe82bcda5
  • cmd/cueadd cue fmt --diff flag@NoamTDfcae10b
  • cmd/cueuse fmt --check in the fmt_multi testscript@mvdan68cd040
  • cmd/cueimprove stdin input handling in cue fmt --check@NoamTDf254cc3
  • cmd/cuemake cue fmt --check print files immediately@NoamTD9e121cb
  • cmd/cueinclude metadata when publishing modules@rogpeppeb7c5800
  • cmd/cuerip out cue.Instance and cue.Merge from 'cue cmd'@mvdan7422d00
  • cmd/cueadd regression test for 'cue cmd' with many packages@mvdan994a15d
  • cmd/cueensure 'get go' with time.Duration is compatible with encoding/json@mvdan1c3f536
  • cmd/cuecorrectly extract transitive dependencies in 'get go'@mvdanb90a5eb
  • cmd/cueadd failing tests for 'cue get go' transitive deps regression@mvdan81f5a20
  • cmd/cueimplement cue mod init --source@rogpeppe2ff5afa
  • cmd/cuefactor cue mod init source to its own file@rogpeppe891a8a0
  • cmd/cuemore resilient mod init version@rogpeppea1dec7d
  • cmd/cuefix mod edit --source self@rogpeppe4997dff
  • cmd/cueadd mod edit command@rogpeppeb7c1a0d
  • cmd/cue/cmdrequire source when running cue mod publish@rogpeppe0616149
  • cmd/cue/cmdexpose evalv3 experiment@mpvld65019d
  • cmd/cueadd global cpuprofile and memprofile flags@mvdan7e061f5
  • cmd/cueavoid calling os.Exit directly@mvdanf047aa0
  • cmd/cuemake fmt process each file exactly once@NoamTD943dd16
  • cmd/cueprint paths relative to the current directory in fmt --check@NoamTD79ded70
  • cmd/cueprint relative paths in fmt --check@NoamTDfc836b1
  • cmd/cuereplace MainTest entrypoint with testing.Testing@mvdanb40ccea
  • cmd/cuetest cue and cue cmd via testscript@mvdan39d2707
  • cmd/cuedisable the wasm interpreter by default for now@mvdanabeea94
  • cmd/cueget go: support time.Duration@gdvalle1b9b079
  • cmd/cueadd a fmt --check flag to list badly formatted files@NoamTD4db4481
  • cmd/cuelock the logins.json during an update@rustyx71a12cf
  • cmd/cueadd refresh tokens support@rustyx25ed954
  • cmd/cueuse fewer go/types.Type.String calls@mvdane4e6d68
  • cmd/cuedeprecate cue somecmd in favor of cue cmd somecmd@mvdane8ecf23
  • cmd/cueignore errors on empty package directories in fmt@mvdan7fcae93
  • cmd/cuemore modules help@rogpeppecb121f5
  • cmd/cueun-hide login command and update docs@mvdan50ed912
  • cmd/cuefind packages by canonical path in get go@uhthomasb648cf4
  • cmd/cuevarious minor cleanups@mvdanc248f4e

cue87

  • cue/formatfix incorrect quote removal in fmt -s@NoamTDb053780
  • cue/loadremove empty file@mvdan74ec639
  • cue/loadcreate test data with broken cue dynamically@NoamTD1ea6c49
  • cue/loadconsistently use canonical import paths to load packages@mvdan26db19b
  • cuefix up iterator godocs to use links@mvdan55b5122
  • cue/load,cue/builduse ast.File.Imports@mvdan32de475
  • cue/loadavoid nil dereference panic if user.Current errors@mvdan40898fe
  • cue/loadcache which directories are missing in importPkg@mvdanf3b22ba
  • cue/loadevaluate only those packages which are needed@rogpeppe3505253
  • cue/loadmove no-package-args logic@rogpeppe1a58708
  • cueadd a regression test for a closedness bug fixed in evalv3@mvdana90aec5
  • cueadd a regression test for a disjunction bug fixed in evalv3@mvdan4900cfc
  • cue/loadreplace readimports with cueimports.Read@mvdan7d49080
  • cueadd another test for a disjunction bug fixed in evalv3@mvdan3588e1a
  • cue/loadtreat all absDirFromImportPath errors as PackageErrors@rogpeppefa64c62
  • cue/loadset the absolute file name when setting source@rogpeppe4a27795
  • cue/loaddo not scan imports of non-CUE files@rogpeppeac35a40
  • cue/loadadd major version suffix to module path in testdata@rogpeppef513a17
  • cue/loadmore correct treatment of module paths with major versions@rogpeppe0b70e5b
  • cue/loadbetter treatment of files specified on the command line@rogpeppe1591fd8
  • cue/loadfactor out syntax cache@rogpeppeef3c0c5
  • cue/loadremove directory argument from addFiles@rogpeppe6804717
  • cue/loadavoid "user:" and "instance:" error prefixes@rogpeppe612837a
  • cue/loadprepare for files package refactor@rogpeppee888508
  • cue/scannerremove go-fuzz testing code and data@mvdan5472c4b
  • cue/literaluse Label for labels consistently@mvdan97695d0
  • cue/parserswitch from go-fuzz to native fuzzing@mvdan43da0b0
  • cueadd regression test for a disjunction fix in evalv3@mvdanb3006ad
  • cue/ast/astutilremove deprecated API usage@NoamTD64bbf1b
  • cue/errorsuse fmt.Fprintf in writeErr directly@mvdan22d5530
  • cue/loadempty or absolute paths are not std import paths@mvdanfdebcd9
  • cuefix godoc links@mvdan4ed59e7
  • cue/loaddon't load from $PWD in the integration tests@mvdanbd9e49f
  • cueremove matrix_test.go@mpvlcd43871
  • cue/loadrestore the error result on an empty string argument@mvdan5e9aa4e
  • cue/loadsimplify logic around build.LoadFunc@mvdan3ebadf1
  • cue/loadremove the now-unused moduleschema.cue file@mvdan7614463
  • cueadd regression test for issue 3042@mvdan612f1ae
  • cueremove TODO for TestExpr@mpvl21b0039
  • cueexempt test for DisallowCycle@mpvl1259cf9
  • cuefix some matrix tests@mpvld3ed229
  • cuefix Allows for new evaluator@mpvl6e48c0d
  • cueignore some tests for TestPos@mpvl71220e6
  • cueset DynamicLabel@mpvlfa3bf5f
  • cue/astmove WalkVisitor and Visitor to astutil and unexport them@mvdan05640c2
  • cue/astdon't walk comments twice@mvdanfd64550
  • cue/astimplement Visitor walking in terms of func walking@mvdan30f7d28
  • cue/astadd WalkVisitor to share with cue/ast/astutil@mvdanbf733fb
  • cuefix IsClosed for new evaluator@mpvl9cf30f1
  • cuefix default handling for new evaluator@mpvl4a8a873
  • cue/ast/astutilremove quoted identifiers remnant@mvdanb3f170a
  • cueallow a tests to run with a variety of options@mpvl548dd7c
  • cue/cmdalways write stdin to stdout in cue fmt@NoamTD70cc402
  • cuechange getInstance to getValue@mpvlebcf2f5
  • cue/tokenrelative positions apply before, not after, a token@mvdan1dda583
  • cue/cmdavoid overwriting formatted files in cue fmt@NoamTDfb9961a
  • cue/loadclean up some var names and code organization@NoamTD41063b7
  • cue/testdataupdate todos on various tests@mpvlde5d0cf
  • cue/mathadd tests for MultipleOf@NoamTD1f4927c
  • cue/formatcollapse empty structs/lists to single line@NoamTD53d5ab3
  • cue/loadavoid repeatedly loading parent directories by caching@NoamTDd9c6c75
  • cueremove Merge@mvdan1864214
  • cue/testdatareorder files in txtar@mpvla16a054
  • cueadd IsNull for Decode@mvdan6169eed
  • cue/formatfix comments formatting in lists@NoamTDfdbd563
  • cue/formatdon't indent fields on same line as lbrace@NoamTD0177234
  • cue/formatadd test for incorrect formatting@NoamTD9839112
  • cue/formatfix string literal replacement in labels@NoamTD2d72477
  • cuefix small typo in function documentation@NoamTD731b2af
  • cue/testdataadd variants of issue1684@mpvl517f611
  • cue/testdataadd benchmark for billion laughs@mpvl416eecf
  • cue/loadmake a note about importPkg redoing lots of work@mvdana220cfb
  • cue/loadensure load.Instances sorts instances deterministically@NoamTDf736827
  • cue/tokenadd a File.Lines getter method@mvdan637939e
  • cue/literalallow a leading positive sign in ParseNum@mvdan060645a
  • cue/testdatapolish test before implementing disjunctions@mpvl20b1c3a
  • cue/loadremove support for cue.mod files@mvdan2887786
  • cueadjust Environment for comprehensions@mpvl3e6a8be
  • cue/loadfix doc comment typo@rogpeppe9b83404
  • cue/loadtreat stdlib-like import on command line as error@rogpeppe2aec394
  • cue/loadconsistent error message quoting@rogpeppe4202a47
  • cue/loaddeprecate Config.StdRoot@rogpeppee675eb7
  • cue/loadchange stdlib import test case@rogpeppe09394f3
  • cue/astremove ParseIdent and support for quoted identifiers@mvdanf8ec1f4
  • cue/ast/astutilstop using the deprecated ast.ParseIdent@mvdan35acbf4
  • cue/loadobey "all packages" mode when loading files@mvdan623b6a8
  • cueremove op type and op-token maps@mvdan93b1a79

doc3

  • doc/refthe subsumption relation for fields was backwards@mvdanb83ae37
  • docremove the kubernetes tutorial@myitcv8985d19
  • docremove the tour@myitcv7d10fbd

encoding9

  • encoding/gocode/gocodecremove cue.Runtime usages@NoamTD078020b
  • encoding/tomladd support for inline tables@mvdan27a0190
  • encoding/protobufcope with major version suffixes in module paths@rogpeppeb57a20a
  • encoding/openapilink to correct upstream doc@jpluscplusma861376
  • encoding/tomlcheck parser errors and reject duplicate keys@mvdaneacde77
  • encoding/gocoderemove unused test.cue file@mvdanabd5778
  • encoding/tomlvalidate the resulting value against toml.Unmarshal@mvdanadf84fd
  • encoding/tomlfirst decoder implementation@mvdana35caed
  • encoding/protobufinclude annotations heading@jpluscplusm35af5a1

internal177

  • internal/mod/modloadremove debugging panic with sprintf@mvdan889da91
  • internal/cibump pinnedReleaseGo for v0.9.0@mvdan4c87ab8
  • internal/mod/modloadremove dead language.version check in CheckTidy@mvdanba0047e
  • internal/mod/modloadrip out language.version logic from Tidy@mvdandd4e28e
  • internal/mod/modloadrewrite "missing dependency" errors in CheckTidy@mvdan8f9fa68
  • internal/mod/modloadskip over local module requirements in CheckTidy@mvdanebf7dca
  • internal/mod/modloadtest that CheckTidy is happy after Tidy@mvdan753536f
  • internal/vcsrefactor to prepare for LICENSE file inclusion@myitcva3b1138
  • internalstop early in GetPackageInfo@mvdana5e77fe
  • internal/mod/modpkgloadskip fs.Stat before fs.ReadDir@mvdanbc40b03
  • internal/mod/modpkgloaddon't use modimports.PackageFiles twice@mvdan58cfc7c
  • internal/mod/modimportsadd TODO about the naming of PackageFiles@mvdan02eb538
  • internal/mod/modpkgloada package with no files is an error@rogpeppe6661949
  • internal/mod/modimportsinclude files from parent directories@rogpeppeb71b72d
  • internal/modmore tests@rogpeppe9c800db
  • internal/cipin to the latest commit of schemastore GH actions schema@myitcv8192239
  • internal/cifix 'hotfix' for GitHub Actions oneof@myitcv927c503
  • internal/encoding/yamldecode invalid YAML 1.1 octals as strings@mvdan4fe848d
  • internal/encoding/yamladd test cases for YAML 1.1 and 1.2 octals@mvdanc41955b
  • internal/encoding/yamladd underlying error to "cannot decode V as T"@mvdan2adcaa6
  • internal/mod/modimportsuse cue/parser.ImportsOnly@mvdan7d93bcc
  • internal/mod/modimportsadd more syntax edge cases to testdata@mvdanc0d6193
  • internal/mod/modimportsavoid extra fs.Stat calls in AllModuleFiles@mvdan97bf1a6
  • internal/ciupdate goreleaser version for v0.9.0@mvdan27689d2
  • internal/registrytestsatisfy staticcheck and gopls@mvdan05453ff
  • internal/filetypesremove unused test.cue file@mvdanc3dc2f2
  • internal/cueexperimentflip modules experiment flag default@rogpeppe1ad8c52
  • internal/cmd/cue-ast-printdo not panic on invalid values@mvdanc789d3e
  • internal/cibump goreleaser and Go ahead of the next release@mvdan7248da6
  • internal/core/exportallow exporting snippets@mpvle775398
  • internal/pkgmake Len ignore optional fields@NoamTDafe322d
  • internalremove some deprecated type/method usages@NoamTD84fe1b9
  • internal/core/adtfix attribute processing@mpvl185426f
  • internal/core/exportfix dereferencing bug@mpvlefd38e6
  • internal/cuetxtarallow inline archives@mpvl645d586
  • internal/core/exportupdate error todos@mpvl22b8c74
  • internal/core/exportfix test@mpvl07d485c
  • internalreplace and remove PackageInfo@NoamTDa49ee92
  • internal/filetypesremove deprecated API usage@NoamTD9a0cae9
  • internal/ciupgrade GH actions JSON Schema@myitcva246bdd
  • internal/vcsonly consider actual sub-directory for status checks@rogpeppecf3cf2f
  • internal/core/adteliminate non-rooted indirections@mpvla651ed4
  • internal/core/depdereference non-rooted values@mpvl68efe82
  • internal/core/adtunwrap ConjunctGroup in EnvExpr@mpvla8ec4b7
  • internal/core/adtunwrap ConjunctGroups in ToExpr@mpvld281a75
  • internal/core/adtremove direct access to BaseValue@mpvl91223e3
  • internal/core/adtpropagate structural cycle up@mpvl9efad90
  • internal/core/adtfix let bug@mpvl576a3ed
  • internal/diffadd matrix test@mpvl4c60191
  • internal/core/exportfix dropping of optional field@mpvla080c35
  • internal/core/subsumepass tests for new evaluator@mpvlc023c4a
  • internal/core/adtmake invalid builtin call resolve to bottom@NoamTD76f656a
  • internal/core/debugappend to []byte rather than using io.Writer@mvdan0bf573f
  • internal/core/adtdon't allocate when asserting in Environment.up@mvdan9ecd7a0
  • internal/core/debugsimplify label code following a TODO@mvdanc445c7d
  • internal/core/debugallow io.WriteString to be efficient@mvdan51209a5
  • internal/core/adtavoid creating closures for adt.Config.Format@mvdane284eef
  • internal/core/adtfix some typos@NoamTDaf36efd
  • internal/core/validateuse matrix in test@mpvl4706840
  • internal/core/subsumeuse matrix for tests@mpvlb5321de
  • internal/core/exportuse matrix for TestValue@mpvlf418fc3
  • internal/core/exportuse matrix for SelfContained@mpvl3f52195
  • internal/core/exportassign a name to TestSelfContained@mpvl78e9e12
  • internal/core/exportuse matrix for TestExtract@mpvl9d3d545
  • internal/core/exportuse matrix for TestGenerated@mpvle5f8e0e
  • internal/core/depadd in tests for new evaluator@mpvlcb2410c
  • internal/cuetdtestintroduce test matrix@mpvl1e843cb
  • internal/core/adtdelay dereferencing in lookup@mpvl7dd29f1
  • internal/core/exporthandle ConjunctGroups@mpvl8935df9
  • internal/core/adtdisable dereference for new evaluator@mpvlaa42655
  • internal/core/adtmove and rename Indirect@mpvl759f26e
  • internal/core/adtfix missing dereference for equal@mpvlbc3e24c
  • internal/core/adtfix missing field error message@mpvlb6a2637
  • internal/cueversionconstruct pseudoversion when possible@rogpeppecaa1e98
  • internal/cueversionsplit language and module versions@rogpeppe2f90f54
  • internal/core/adtfix matchPattern@mpvl72ba528
  • internal/core/adtdo not dereference for newChildValue@mpvladea575
  • internal/core/adtdereference default@mpvl14e1ef2
  • internal/core/debugomit ConjunctGroups in compact mode@mpvlc6701b4
  • internal/core/adtenable matrix testing@mpvl8b6705c
  • internal/core/adtavoid loops in debug printing@mpvlbae8bbf
  • internal/core/adtclean up indirects and mark disjuncts@mpvl831374c
  • internal/core/adtavoid hang with let processing@mpvl382e4be
  • internal/core/adtintroduce new cycle detection mechanism@mpvlfb37710
  • internal/core/adtdo not share "inlined" structs@mpvl1711c14
  • internal/core/adtprevent cyclic printing@mpvl1860e39
  • internal/core/adtdisable panic with TODO@mpvl52c4c32
  • internal/cueversionbump fallbackVersion for v0.9.0-alpha.3@mvdan797d6f4
  • internal/mod/modloadretain source field when tidying@rogpeppef2980b7
  • internal/core/adtunshare once Pending arc is known@mpvl61c1814
  • internal/core/adtenable comprehension.txtar@mpvlb3cb6e0
  • internal/core/adtadd tests for structure sharing@mpvl3a90b84
  • internal/core/adtcatch nil parent@mpvl8087ff7
  • internal/core/adtmatch decrement for nested comprehension arcs@mpvledda26d
  • internal/core/adtadd Sharing option in CUE_DEBUG@mpvld900867
  • internal/cuedebugusurp some evaluator debug flags@mpvl4280d65
  • internal/cuedebugdefine type for debug flags@mpvl9c5c3c0
  • internal/core/adtprepare to move DebugFlags to cuedebug@mpvlf2e17b1
  • internal/core/adtmove debug flags into struct@mpvlcb96718
  • internal/core/adtweave OpContext to more operations@mpvl7ada2dd
  • internal/filetypeslazily load types.cue@mvdan2cc7b65
  • internal/filetypesdiscard unknown file extensions quickly@mvdanf891103
  • internal/filetypesfill build.File.Filename in toFile in Go@mvdan4da59d6
  • internal/filetypessimplify some of the CUE logic@mvdana21e2df
  • internalremove MakeInstance@mvdan25e8713
  • internal/filetypesadd test coverage for FromFile unifying forms@mvdanc16bac7
  • internal/filetypesFile.Default is indeed not unused@mvdan7b2f27e
  • internal/filetypesuse cue.Value.LookupPath@mvdanf912da6
  • internal/encodingresolve all deprecation warnings@mvdan6f8cbb0
  • internal/_e2eactually add source field in e2e tests@rogpeppe5ea4e50
  • internal/pkgmake CallCtxt.Decimal support *adt.Vertex@NoamTD243df63
  • internal/_e2efix end to end tests to set source@rogpeppe7f3e9cf
  • internal/vcsuse limited environment when executing git in tests@rogpeppedc78c66
  • internal/cisupport running e2e tests on pushes to ci/test@rogpeppef0f56f8
  • internal/vcsnew package@rogpeppe87352e8
  • internal/encoding/yamlreject trailing input in Unmarshal@mvdan25af2e8
  • internal/encoding/yamluse cue/literal to quote string scalars@mvdan16edd40
  • internal/filetypesavoid unifying with the top-level value@mvdanff533f4
  • internal/cueconfigvalidate logins.json on load@rustyxaadc5ad
  • internal/cueversionbump for v0.9.0-alpha.2@mvdanf8d0998
  • internal/core/adtfail earlier on incompatible types@mpvl6728bb2
  • internal/core/adtintroduce structure sharing@mpvl4c7fe24
  • internal/core/adthacky alternative for cyclicReferences@mpvl80d681b
  • internal/core/adtpre-evaluate pattern constraints@mpvl25db081
  • internal/core/adtfinalize let value@mpvl4abbb53
  • internal/core/adtrecord stats for new evaluator@mpvld323ba5
  • internal/core/adtimplement pattern matching for new evaluator@mpvlca87216
  • internal/cueexperimentenable CUE_EXPERIMENT=yamlv3decoder by default@mvdanf03aaa1
  • internal/envflagadd support for key-values and defaults@mvdanb92ad55
  • internal/encoding/yamladd the new Decoder@mvdan9fba4fa
  • internal/encoding/yamladd even more test cases@mvdanb508b29
  • internal/core/adtfix default handling@mpvl5e896e0
  • internal/core/adtfix task completion across disjunction boundaries@mpvl8c6738a
  • internal/core/adtfix closedness issue with pattern constraints@mpvlb944429
  • internal/core/adtfix path in error messages@mpvl4cb3889
  • internal/core/adtpatch old status mechanism@mpvl709cdc5
  • internal/core/adtadd methods for accessing Conjuncts@mpvl4fcfdbf
  • internal/core/adtremove unnecessary code@mpvlbc2672f
  • internal/core/adttask is not always defined@mpvl4a5ba90
  • internal/core/adtinitialize nodeContext in two phases@mpvl149b248
  • internal/encoding/yamladd more decoder tests@mvdan21abb7f
  • internal/encoding/yamlcopy decode_test.go from internal/third_party/yaml@mvdanc8d4c3a
  • internal/core/adtremove unnecessary code@mpvl97daa8f
  • internal/core/adtadd task deprecation@mpvlbb20494
  • internal/core/adtset list type as soon as known@mpvl1e01bd6
  • internal/core/adtalso check closedness for list in Equal@mpvl30c5f27
  • internal/core/adtmatch patterns only if type matches@mpvl8e58091
  • internal/core/adtguard visual debugger from opening too many tabs@mpvl73611fd
  • internal/core/adtkeep arcTypes per closeContext@mpvl03de5ae
  • internal/core/adtforward cloned disjunct@mpvle4aae72
  • internal/core/adtcompute kind differently for new evaluator@mpvl87ad2e4
  • internal/core/adtvalidate alignment of closeContext@mpvlfe85022
  • internal/ciwe no longer need to set CUE_LONG=true@mvdan6e690fd
  • internal/core/adtfixed closedness issue for embeddings in files@mpvlbdba8ed
  • internal/core/adtdo not use NOTIFY arcs for closedness checking@mpvlc89d040
  • internal/core/adtallow definitions in structs@mpvlad9a305
  • internal/core/adtadd edge cases for disjunctions@mpvld42ee67
  • internal/core/adtcompare nodes based on underlying@mpvle1406c6
  • internal/cuetxtarautomatically clean up once diff is gone@mpvlf4aa801
  • internal/core/adtenable disjunction tests for alpha evaluator@mpvl87de98e
  • internal/core/adtfirst implementation of disjunctions@mpvlcfd4e37
  • internal/core/adtuse Vertex.Indirect in more places@mpvlcc2075b
  • internalteach ToFile to not drop StructLit comments@mvdanf9032a0
  • internal/registrytestensure that 401 errors have a Www-Authenticate header@rogpeppe41e8686
  • internal/core/adtadd benchmark for exponential behavior@mpvl9cdee62
  • internal/cibump to macos-14 and Go 1.22.2@mvdand8e6953
  • internal/filetypesreplace encoding/gocode with go:embed@mvdan3a9199f
  • internal/mod/mvsavoid using reflect.DeepEqual@mvdan338ab6e
  • internal/sourceadd Open, moving from internal/encoding@mvdan6c3c377
  • internal/third_party/yamlremove last bits of reflect@mvdan61db61c
  • internal/third_party/yamldeduplicate source.Read@mvdanb6516c5
  • internal/core/adtdetect permanent errors for undefined fields earlier@nickfiggins3c886e0
  • internal/core/adtadd a little more detail to Environment.up panics@mvdanabc8bb1
  • internal/cueversionbump fallbackVersion for v0.9.0-alpha.1@mvdan74fb5cf
  • internal/_e2erename CUE_LOGINS to CUE_TEST_LOGINS@myitcvec655a5
  • internal/cido not trigger build of tip.cuelang.org@myitcv4aaa2db
  • internal/cueversionbump to v0.9.0-0.dev@mvdana2d2085

mod21

  • mod/modfilefix up comments in module.cue schema@myitcv2eab1b7
  • modremove unused parameters from APIs@mvdan3c5d18e
  • mod/modzipsort files by Path before creating zip archive@myitcv10e9cf1
  • mod/modcacheremove unused context parameters@mvdana917c57
  • mod/moduleimprove handling of Qualifier in ImportPath@rogpeppe9d3eae5
  • mod/moduleadd more tests@rogpeppeb88cfcf
  • mod/modfileadd FixLegacy function@rogpeppe1dee146
  • mod/modfileaccept language versions after v0.8.0-alpha.0@rogpeppe443106f
  • mod/modfileadd custom data field@rogpeppea8693a0
  • mod/modfileparse module.cue in data-only mode@rogpeppe21a5c8b
  • mod/moduleadd qualifier in ImportPath when necessary@rogpeppe64baa18
  • mod/modregistrytreat all 404 errors as not-found@rogpeppebf75699
  • mod/modfiledo not reuse a global cue.Context in Parse and ParseLegacy@mvdan91eec1b
  • mod/modzipuse filepath.WalkDir@mvdan9518dae
  • mod/modfilebetter error message when disallowed field is used@rogpeppefdf75f5
  • mod/modregistryallow RegistryResolver to return ErrRegistryNotFound@rogpeppe89ae7d7
  • mod/modregistrymetadata support@rogpeppecf2551f
  • mod/modfileparse module.cue according to language.version@rogpeppe73b3df2
  • mod/modfileadd support for "source" field@rogpeppe8d043e7
  • mod/modregistrytreat "forbidden" as "not found"@rogpepped8067eb
  • mod/modconfigswap os.ReadFile and os.Rename with robustio@mvdanb0257fa

pkg7

  • pkgremove usages of cue.Runtime in tests@NoamTD51cd5ca
  • pkg/encodingadd test cases for {json,yaml}.Validate@NoamTD00a747c
  • pkg/structadd tests for MinLength and MaxLength@NoamTDa169ae2
  • pkgupdate tests to use matrix@mpvla983b19
  • pkg/mathfix MultipleOf algorithm@NoamTDc8cc462
  • pkg/encodingadd tests that Unmarshal rejects trailing input@mvdane063155
  • pkg/listmake Sort work for new evaluator@mpvl50989f0

tools6

  • tools/flowenable matrix tests@mpvl5f8930a
  • tools/flowdisable (part of) flaky test@mpvldff77a6
  • tools/flowuse matrix for tests@mpvlfc7d3f3
  • tools/trimprepare for using test matrix@mpvl926f060
  • tools/trimupdate for new evaluator@mpvl416c163
  • tools/flowreturn permanent errors from tasks@nickfiggins2137bea

Other13

  • CONTRIBUTINGtidy up the way CUE authors or contributors are tracked@mvdan7490a3d
  • cueplsminimal fix to make compilation work vs Go tip@myitcv7451967
  • cuegoremove deprecated cue.Instance usage@NoamTD1dcd350
  • cuecontextadd options to set version and debug flags@mpvlf0cd02b
  • update golang.org/x/... dependencies for v0.9.0@mvdanb3a7fea
  • ast/astutiluse more generics to reduce duplication@mvdand696e44
  • Revert "cmd/cue: rip out cue.Instance and cue.Merge from 'cue cmd'"@mvdan3519740
  • Revert "cue: remove Merge"@mvdan7195817
  • modresolvesupport special registry "none"@rogpepped1068c4
  • READMEfix broken links to tour and k8s tutorial@NoamTD924178c
  • update github.com/google/uuid@mvdanda9e386
  • Revert "tools/flow: check and return errors from task values"@rogpeppeea385fd
  • remove unneeded dockerignore file@mvdan5489392

Downloads

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

Archives

PlatformFile and SHA-256
macOS, Intelcue_v0.9.0_darwin_amd64.tar.gz0b77cff3ec8f8184e7d9ec68174baec153905d61c417db6496a26217d8e1f1a9
macOS, Apple siliconcue_v0.9.0_darwin_arm64.tar.gz736363199273e049ae223556ca63ebc8875b19f16bbf4f6c41bcea680df22fd4
Linux, x86-64cue_v0.9.0_linux_amd64.tar.gz8ba567a8223c2cfc6850960adefbd600cc96f220d43e67653a98036be2b44228
Linux, Arm64cue_v0.9.0_linux_arm64.tar.gz6f3b03b8046d29cdeb50a1313842afd2d8a352fdd68e80c5797f1fd88b85bde4
Windows, x86-64cue_v0.9.0_windows_amd64.zipf75354e2c40ed01d847eb83515f50561ea74927a05406387a261df2920033de0
Windows, Arm64cue_v0.9.0_windows_arm64.zipc3a5f81c67a37bc35d79b0c2bfefd566c25a7bf5417f54de3fbbd08705a89578

SHA-256 checksums for all of these: checksums.txt

Install CUE