v0.9.0
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 testsallremove the last remnants of the old :: definition syntaxallreplace internal.GetPackageInfo with File.PackageName where possiblealldrop '// import' canonical path commentsallresolve unused value and yoda conditionals staticcheck warningsalltidy up deprecation warnings a bitallresolve a handful of linter warningsallremove various cue.Value.Lookup usagesallvarious very small cleanups from gopls and staticcheckallremove last usages of ast.Node.{Comments,AddComment}alladd language.version to module.cue filesalltidy up a number of leftover Go mentionsallapply cue fmt as of v0.9.0-alpha.4allremove some unused code and other minor cleanupsalldon't use XXX strings unnecessarilyallprevent duplicate filenames in testscriptsallcue fmtallreplace sort.Sort and sort.Slice with slices.SortFuncallremove a few uses of fmt.Sprintallremove manual work via //go:generate stringer
cmd79
cmd/cuesuggestcue mod fixwhenlanguage.versionis missingcmd/cueadd testscripts for backwards and forwards module compatibilitycmd/cuetest publishing a module with no major version suffixcmd/cueadd sanity check that 'cue mod publish' is idempotentcmd/cueremove CUE_VERSION_OVERRIDE from testscriptscmd/cueensure module is tidy before 'mod publish' publishescmd/cueadd a test forcue mod publishon a non-tidy modulecmd/cuesuggestcue mod tidywhen --check says "not tidy"cmd/cuecorrect spelling of dry run flagcmd/cuecopy LICENSE files from VCS root where non exists in modulecmd/cuerework mod publish with git testcmd/cuedo not require source to be set for v0.8 language.versionscmd/cueadd test cases for publishing with older language.versionscmd/cuerewritehelp environmentto be more explicitcmd/cuedo not output digest in mod publishcmd/cueremove 'experimental' guard on modules (commands)cmd/cueuse a consistent directory structure for the modules cachecmd/cuecheck the structure of CUE_CACHE_DIR after downloading modulescmd/cueremove unnecessary modules env var lines in testscriptscmd/cue/cmdadd more package pattern wildcard test casescmd/cueadd test for issue 3155cmd/cueadd more test cases for package resolutioncmd/cueget the working directory once at init timecmd/cueadd a regression test for issue 2704cmd/cueensure that fmt works outside a module with files toocmd/cueadd mod fix commandcmd/cuemove Dockerfile to the main package directorycmd/cuerepurpose exitOnErr into printErrorcmd/cueadd cue fmt --files modecmd/cuereplace most fatal exitOnErr calls with error returnscmd/cuean empty string is neither a valid package nor filecmd/cueno need to buffer an error to print to stderrcmd/cueremove TestHelp in favor of testscriptcmd/cueimprove cue vet examples' argument ordercmd/cueexpand cmd_filetypes.txtar with more edge casescmd/cuerefer to 'workflow commands' instead of 'commands'cmd/cuefail when requesting a missing help topiccmd/cueuse cue/parser and cue/format directly in fmtcmd/cueadd tests that cover fmt on various filetypescmd/cuefail cue fmt if arg import path doesn't existcmd/cuedocument -ldflags for local release buildscmd/cuenew "mod resolve" commandcmd/cueadd dry run flag to cue mod publishcmd/cueadd cue fmt --diff flagcmd/cueuse fmt --check in the fmt_multi testscriptcmd/cueimprove stdin input handling in cue fmt --checkcmd/cuemake cue fmt --check print files immediatelycmd/cueinclude metadata when publishing modulescmd/cuerip out cue.Instance and cue.Merge from 'cue cmd'cmd/cueadd regression test for 'cue cmd' with many packagescmd/cueensure 'get go' with time.Duration is compatible with encoding/jsoncmd/cuecorrectly extract transitive dependencies in 'get go'cmd/cueadd failing tests for 'cue get go' transitive deps regressioncmd/cueimplement cue mod init --sourcecmd/cuefactor cue mod init source to its own filecmd/cuemore resilient mod init versioncmd/cuefix mod edit --source selfcmd/cueadd mod edit commandcmd/cue/cmdrequire source when running cue mod publishcmd/cue/cmdexpose evalv3 experimentcmd/cueadd global cpuprofile and memprofile flagscmd/cueavoid calling os.Exit directlycmd/cuemake fmt process each file exactly oncecmd/cueprint paths relative to the current directory in fmt --checkcmd/cueprint relative paths in fmt --checkcmd/cuereplace MainTest entrypoint with testing.Testingcmd/cuetestcueandcue cmdvia testscriptcmd/cuedisable the wasm interpreter by default for nowcmd/cueget go: support time.Durationcmd/cueadd a fmt --check flag to list badly formatted filescmd/cuelock the logins.json during an updatecmd/cueadd refresh tokens supportcmd/cueuse fewer go/types.Type.String callscmd/cuedeprecatecue somecmdin favor ofcue cmd somecmdcmd/cueignore errors on empty package directories in fmtcmd/cuemore modules helpcmd/cueun-hide login command and update docscmd/cuefind packages by canonical path in get gocmd/cuevarious minor cleanups
cue87
cue/formatfix incorrect quote removal in fmt -scue/loadremove empty filecue/loadcreate test data with broken cue dynamicallycue/loadconsistently use canonical import paths to load packagescuefix up iterator godocs to use linkscue/load,cue/builduse ast.File.Importscue/loadavoid nil dereference panic if user.Current errorscue/loadcache which directories are missing in importPkgcue/loadevaluate only those packages which are neededcue/loadmove no-package-args logiccueadd a regression test for a closedness bug fixed in evalv3cueadd a regression test for a disjunction bug fixed in evalv3cue/loadreplace readimports with cueimports.Readcueadd another test for a disjunction bug fixed in evalv3cue/loadtreat all absDirFromImportPath errors as PackageErrorscue/loadset the absolute file name when setting sourcecue/loaddo not scan imports of non-CUE filescue/loadadd major version suffix to module path in testdatacue/loadmore correct treatment of module paths with major versionscue/loadbetter treatment of files specified on the command linecue/loadfactor out syntax cachecue/loadremove directory argument from addFilescue/loadavoid "user:" and "instance:" error prefixescue/loadprepare for files package refactorcue/scannerremove go-fuzz testing code and datacue/literaluse Label for labels consistentlycue/parserswitch from go-fuzz to native fuzzingcueadd regression test for a disjunction fix in evalv3cue/ast/astutilremove deprecated API usagecue/errorsuse fmt.Fprintf in writeErr directlycue/loadempty or absolute paths are not std import pathscuefix godoc linkscue/loaddon't load from $PWD in the integration testscueremove matrix_test.gocue/loadrestore the error result on an empty string argumentcue/loadsimplify logic around build.LoadFunccue/loadremove the now-unused moduleschema.cue filecueadd regression test for issue 3042cueremove TODO for TestExprcueexempt test for DisallowCyclecuefix some matrix testscuefix Allows for new evaluatorcueignore some tests for TestPoscueset DynamicLabelcue/astmove WalkVisitor and Visitor to astutil and unexport themcue/astdon't walk comments twicecue/astimplement Visitor walking in terms of func walkingcue/astadd WalkVisitor to share with cue/ast/astutilcuefix IsClosed for new evaluatorcuefix default handling for new evaluatorcue/ast/astutilremove quoted identifiers remnantcueallow a tests to run with a variety of optionscue/cmdalways write stdin to stdout in cue fmtcuechange getInstance to getValuecue/tokenrelative positions apply before, not after, a tokencue/cmdavoid overwriting formatted files in cue fmtcue/loadclean up some var names and code organizationcue/testdataupdate todos on various testscue/mathadd tests for MultipleOfcue/formatcollapse empty structs/lists to single linecue/loadavoid repeatedly loading parent directories by cachingcueremove Mergecue/testdatareorder files in txtarcueadd IsNull for Decodecue/formatfix comments formatting in listscue/formatdon't indent fields on same line as lbracecue/formatadd test for incorrect formattingcue/formatfix string literal replacement in labelscuefix small typo in function documentationcue/testdataadd variants of issue1684cue/testdataadd benchmark for billion laughscue/loadmake a note about importPkg redoing lots of workcue/loadensure load.Instances sorts instances deterministicallycue/tokenadd a File.Lines getter methodcue/literalallow a leading positive sign in ParseNumcue/testdatapolish test before implementing disjunctionscue/loadremove support for cue.mod filescueadjust Environment for comprehensionscue/loadfix doc comment typocue/loadtreat stdlib-like import on command line as errorcue/loadconsistent error message quotingcue/loaddeprecate Config.StdRootcue/loadchange stdlib import test casecue/astremove ParseIdent and support for quoted identifierscue/ast/astutilstop using the deprecated ast.ParseIdentcue/loadobey "all packages" mode when loading filescueremove op type and op-token maps
doc3
doc/refthe subsumption relation for fields was backwardsdocremove the kubernetes tutorialdocremove the tour
encoding9
encoding/gocode/gocodecremove cue.Runtime usagesencoding/tomladd support for inline tablesencoding/protobufcope with major version suffixes in module pathsencoding/openapilink to correct upstream docencoding/tomlcheck parser errors and reject duplicate keysencoding/gocoderemove unused test.cue fileencoding/tomlvalidate the resulting value against toml.Unmarshalencoding/tomlfirst decoder implementationencoding/protobufinclude annotations heading
internal177
internal/mod/modloadremove debugging panic with sprintfinternal/cibump pinnedReleaseGo for v0.9.0internal/mod/modloadremove dead language.version check in CheckTidyinternal/mod/modloadrip out language.version logic from Tidyinternal/mod/modloadrewrite "missing dependency" errors in CheckTidyinternal/mod/modloadskip over local module requirements in CheckTidyinternal/mod/modloadtest that CheckTidy is happy after Tidyinternal/vcsrefactor to prepare for LICENSE file inclusioninternalstop early in GetPackageInfointernal/mod/modpkgloadskip fs.Stat before fs.ReadDirinternal/mod/modpkgloaddon't use modimports.PackageFiles twiceinternal/mod/modimportsadd TODO about the naming of PackageFilesinternal/mod/modpkgloada package with no files is an errorinternal/mod/modimportsinclude files from parent directoriesinternal/modmore testsinternal/cipin to the latest commit of schemastore GH actions schemainternal/cifix 'hotfix' for GitHub Actions oneofinternal/encoding/yamldecode invalid YAML 1.1 octals as stringsinternal/encoding/yamladd test cases for YAML 1.1 and 1.2 octalsinternal/encoding/yamladd underlying error to "cannot decode V as T"internal/mod/modimportsuse cue/parser.ImportsOnlyinternal/mod/modimportsadd more syntax edge cases to testdatainternal/mod/modimportsavoid extra fs.Stat calls in AllModuleFilesinternal/ciupdate goreleaser version for v0.9.0internal/registrytestsatisfy staticcheck and goplsinternal/filetypesremove unused test.cue fileinternal/cueexperimentflip modules experiment flag defaultinternal/cmd/cue-ast-printdo not panic on invalid valuesinternal/cibump goreleaser and Go ahead of the next releaseinternal/core/exportallow exporting snippetsinternal/pkgmake Len ignore optional fieldsinternalremove some deprecated type/method usagesinternal/core/adtfix attribute processinginternal/core/exportfix dereferencing buginternal/cuetxtarallow inline archivesinternal/core/exportupdate error todosinternal/core/exportfix testinternalreplace and remove PackageInfointernal/filetypesremove deprecated API usageinternal/ciupgrade GH actions JSON Schemainternal/vcsonly consider actual sub-directory for status checksinternal/core/adteliminate non-rooted indirectionsinternal/core/depdereference non-rooted valuesinternal/core/adtunwrap ConjunctGroup in EnvExprinternal/core/adtunwrap ConjunctGroups in ToExprinternal/core/adtremove direct access to BaseValueinternal/core/adtpropagate structural cycle upinternal/core/adtfix let buginternal/diffadd matrix testinternal/core/exportfix dropping of optional fieldinternal/core/subsumepass tests for new evaluatorinternal/core/adtmake invalid builtin call resolve to bottominternal/core/debugappend to []byte rather than using io.Writerinternal/core/adtdon't allocate when asserting in Environment.upinternal/core/debugsimplify label code following a TODOinternal/core/debugallow io.WriteString to be efficientinternal/core/adtavoid creating closures for adt.Config.Formatinternal/core/adtfix some typosinternal/core/validateuse matrix in testinternal/core/subsumeuse matrix for testsinternal/core/exportuse matrix for TestValueinternal/core/exportuse matrix for SelfContainedinternal/core/exportassign a name to TestSelfContainedinternal/core/exportuse matrix for TestExtractinternal/core/exportuse matrix for TestGeneratedinternal/core/depadd in tests for new evaluatorinternal/cuetdtestintroduce test matrixinternal/core/adtdelay dereferencing in lookupinternal/core/exporthandle ConjunctGroupsinternal/core/adtdisable dereference for new evaluatorinternal/core/adtmove and rename Indirectinternal/core/adtfix missing dereference for equalinternal/core/adtfix missing field error messageinternal/cueversionconstruct pseudoversion when possibleinternal/cueversionsplit language and module versionsinternal/core/adtfix matchPatterninternal/core/adtdo not dereference for newChildValueinternal/core/adtdereference defaultinternal/core/debugomit ConjunctGroups in compact modeinternal/core/adtenable matrix testinginternal/core/adtavoid loops in debug printinginternal/core/adtclean up indirects and mark disjunctsinternal/core/adtavoid hang with let processinginternal/core/adtintroduce new cycle detection mechanisminternal/core/adtdo not share "inlined" structsinternal/core/adtprevent cyclic printinginternal/core/adtdisable panic with TODOinternal/cueversionbump fallbackVersion for v0.9.0-alpha.3internal/mod/modloadretain source field when tidyinginternal/core/adtunshare once Pending arc is knowninternal/core/adtenable comprehension.txtarinternal/core/adtadd tests for structure sharinginternal/core/adtcatch nil parentinternal/core/adtmatch decrement for nested comprehension arcsinternal/core/adtadd Sharing option in CUE_DEBUGinternal/cuedebugusurp some evaluator debug flagsinternal/cuedebugdefine type for debug flagsinternal/core/adtprepare to move DebugFlags to cuedebuginternal/core/adtmove debug flags into structinternal/core/adtweave OpContext to more operationsinternal/filetypeslazily load types.cueinternal/filetypesdiscard unknown file extensions quicklyinternal/filetypesfill build.File.Filename in toFile in Gointernal/filetypessimplify some of the CUE logicinternalremove MakeInstanceinternal/filetypesadd test coverage for FromFile unifying formsinternal/filetypesFile.Default is indeed not unusedinternal/filetypesuse cue.Value.LookupPathinternal/encodingresolve all deprecation warningsinternal/_e2eactually add source field in e2e testsinternal/pkgmake CallCtxt.Decimal support *adt.Vertexinternal/_e2efix end to end tests to set sourceinternal/vcsuse limited environment when executing git in testsinternal/cisupport running e2e tests on pushes to ci/testinternal/vcsnew packageinternal/encoding/yamlreject trailing input in Unmarshalinternal/encoding/yamluse cue/literal to quote string scalarsinternal/filetypesavoid unifying with the top-level valueinternal/cueconfigvalidate logins.json on loadinternal/cueversionbump for v0.9.0-alpha.2internal/core/adtfail earlier on incompatible typesinternal/core/adtintroduce structure sharinginternal/core/adthacky alternative for cyclicReferencesinternal/core/adtpre-evaluate pattern constraintsinternal/core/adtfinalize let valueinternal/core/adtrecord stats for new evaluatorinternal/core/adtimplement pattern matching for new evaluatorinternal/cueexperimentenable CUE_EXPERIMENT=yamlv3decoder by defaultinternal/envflagadd support for key-values and defaultsinternal/encoding/yamladd the new Decoderinternal/encoding/yamladd even more test casesinternal/core/adtfix default handlinginternal/core/adtfix task completion across disjunction boundariesinternal/core/adtfix closedness issue with pattern constraintsinternal/core/adtfix path in error messagesinternal/core/adtpatch old status mechanisminternal/core/adtadd methods for accessing Conjunctsinternal/core/adtremove unnecessary codeinternal/core/adttask is not always definedinternal/core/adtinitialize nodeContext in two phasesinternal/encoding/yamladd more decoder testsinternal/encoding/yamlcopy decode_test.go from internal/third_party/yamlinternal/core/adtremove unnecessary codeinternal/core/adtadd task deprecationinternal/core/adtset list type as soon as knowninternal/core/adtalso check closedness for list in Equalinternal/core/adtmatch patterns only if type matchesinternal/core/adtguard visual debugger from opening too many tabsinternal/core/adtkeep arcTypes per closeContextinternal/core/adtforward cloned disjunctinternal/core/adtcompute kind differently for new evaluatorinternal/core/adtvalidate alignment of closeContextinternal/ciwe no longer need to set CUE_LONG=trueinternal/core/adtfixed closedness issue for embeddings in filesinternal/core/adtdo not use NOTIFY arcs for closedness checkinginternal/core/adtallow definitions in structsinternal/core/adtadd edge cases for disjunctionsinternal/core/adtcompare nodes based on underlyinginternal/cuetxtarautomatically clean up once diff is goneinternal/core/adtenable disjunction tests for alpha evaluatorinternal/core/adtfirst implementation of disjunctionsinternal/core/adtuse Vertex.Indirect in more placesinternalteach ToFile to not drop StructLit commentsinternal/registrytestensure that 401 errors have a Www-Authenticate headerinternal/core/adtadd benchmark for exponential behaviorinternal/cibump to macos-14 and Go 1.22.2internal/filetypesreplace encoding/gocode with go:embedinternal/mod/mvsavoid using reflect.DeepEqualinternal/sourceadd Open, moving from internal/encodinginternal/third_party/yamlremove last bits of reflectinternal/third_party/yamldeduplicate source.Readinternal/core/adtdetect permanent errors for undefined fields earlierinternal/core/adtadd a little more detail to Environment.up panicsinternal/cueversionbump fallbackVersion for v0.9.0-alpha.1internal/_e2erename CUE_LOGINS to CUE_TEST_LOGINSinternal/cido not trigger build of tip.cuelang.orginternal/cueversionbump to v0.9.0-0.dev
mod21
mod/modfilefix up comments in module.cue schemamodremove unused parameters from APIsmod/modzipsort files by Path before creating zip archivemod/modcacheremove unused context parametersmod/moduleimprove handling of Qualifier in ImportPathmod/moduleadd more testsmod/modfileadd FixLegacy functionmod/modfileaccept language versions after v0.8.0-alpha.0mod/modfileadd custom data fieldmod/modfileparse module.cue in data-only modemod/moduleadd qualifier in ImportPath when necessarymod/modregistrytreat all 404 errors as not-foundmod/modfiledo not reuse a global cue.Context in Parse and ParseLegacymod/modzipuse filepath.WalkDirmod/modfilebetter error message when disallowed field is usedmod/modregistryallow RegistryResolver to return ErrRegistryNotFoundmod/modregistrymetadata supportmod/modfileparse module.cue according to language.versionmod/modfileadd support for "source" fieldmod/modregistrytreat "forbidden" as "not found"mod/modconfigswap os.ReadFile and os.Rename with robustio
pkg7
pkgremove usages of cue.Runtime in testspkg/encodingadd test cases for {json,yaml}.Validatepkg/structadd tests for MinLength and MaxLengthpkgupdate tests to use matrixpkg/mathfix MultipleOf algorithmpkg/encodingadd tests that Unmarshal rejects trailing inputpkg/listmake Sort work for new evaluator
tools6
tools/flowenable matrix teststools/flowdisable (part of) flaky testtools/flowuse matrix for teststools/trimprepare for using test matrixtools/trimupdate for new evaluatortools/flowreturn permanent errors from tasks
Other13
CONTRIBUTINGtidy up the way CUE authors or contributors are trackedcueplsminimal fix to make compilation work vs Go tipcuegoremove deprecated cue.Instance usagecuecontextadd options to set version and debug flags- update golang.org/x/... dependencies for v0.9.0
ast/astutiluse more generics to reduce duplication- Revert "cmd/cue: rip out cue.Instance and cue.Merge from 'cue cmd'"
- Revert "cue: remove Merge"
modresolvesupport special registry "none"READMEfix broken links to tour and k8s tutorial- update github.com/google/uuid
- Revert "tools/flow: check and return errors from task values"
- remove unneeded dockerignore file
Downloads
Every file this release published on GitHub, with its SHA-256. Most people install CUE as Installing CUE describes, which also shows how to check a download.
Archives
| Platform | File and SHA-256 |
|---|---|
| macOS, Intel | cue_0b77cff3ec8f8184e7d9ec68174baec153905d61c417db6496a26217d8e1f1a9 |
| macOS, Apple silicon | cue_736363199273e049ae223556ca63ebc8875b19f16bbf4f6c41bcea680df22fd4 |
| Linux, x86-64 | cue_8ba567a8223c2cfc6850960adefbd600cc96f220d43e67653a98036be2b44228 |
| Linux, Arm64 | cue_6f3b03b8046d29cdeb50a1313842afd2d8a352fdd68e80c5797f1fd88b85bde4 |
| Windows, x86-64 | cue_f75354e2c40ed01d847eb83515f50561ea74927a05406387a261df2920033de0 |
| Windows, Arm64 | cue_c3a5f81c67a37bc35d79b0c2bfefd566c25a7bf5417f54de3fbbd08705a89578 |
SHA-256 checksums for all of these: checksums.txt