v0.10.0-alpha.1
This release includes initial support for the embed proposal, multiple fixes for the new modules support, as well as many other fixes and enhancements.
Evaluator
CLs 1195897 and 1196094 fix two crashes with CUE_EXPERIMENT=evalv3 as reported by users.
Embed proposal
With CUE_EXPERIMENT=embed, CUE now supports the embedding of non-CUE files within a CUE package. See the embed proposal and its design document for details, as well as the new how-to guide for the feature.
Modules
CL 1197530 fixes the behavior of build tags, and also adds support for parentheses in build tag expressions.
CL 1197531 implements better caching when evaluating dependencies, which should speed up evaluation of modules that use multi-directory packages.
Go API
CL 1196721 disallows importing or loading packages with an underscore qualifier like foo.com/bar:_, as it was never intended behavior. Users should use the new embed proposal instead.
CL 1196820 adds a cue.LanguageVersion function to obtain the current version of the language spec that the Go module implements.
CL 1197160 implements considered support for build tags in modules. Build tags are considered false when outside the main module.
Encodings
CL 1195628 ensures that cue/format prints a newline after every comment.
CL 1195884 teaches cue/format to preserve comments associated with ... ellipsis expressions.
CL 538624 fixes a bug where cue/format would start a CUE file with white space if it began with a clause.
CL 1196134 fixes a bug where a comment at the start of a CUE file would sometimes be indented.
CL 1196135 fixes a bug where index or selector expressions could cause extra tab indentation.
CL 1196291 tweaks the YAML decoder so that comments following a field are attached to the entire field.
CL 1196332 tweaks the JSONL (newline-delimited JSON) so that line numbers aren’t reset with each new JSON value.
CL 1196436 tweaks the textproto decoder to correctly handle required and optional fields.
Builtins
CL 1196212 adds a list.Reverse function to reverse the elements of a list.
CL 1197452 tweaks tool/exec.Run so that its errors are unambiguous when any command arguments contain white space.
cmd/cue
CL 1196822 adds a --language-version flag for cue mod init and cue mod edit to set the language.version value.
CL 1197185 teaches cue mod resolve to work on the current module when no arguments are given.
CL 1196370 teaches cue mod registry to gracefully shut down when interrupted.
All changes
86 changes since v0.9.0by area
cmd17
cmd/cueadd test case for issue 3262cmd/cuefix link in embed help textcmd/cuehandle signals and perform a graceful shutdown for mod registrycmd/cuetest tool/exec.Run with arguments involving spacescmd/cueadd a forwards compatibility test case for bugfix releasescmd/cuedo not allow embedding of CUE file types (for now)cmd/cueadd test case for embedding of CUE file type filescmd/cueprovide initial text for 'help embed'cmd/cuedocument CUE_EXPERIMENT=embedcmd/cuemake mod resolve work with no argscmd/cueimplement --language-version flag for cue mod edit and initcmd/cue,cue/loadadd tests for underscore packagescmd/cueremove unnecessary fields and do not use filepath.WalkDircmd/cuecorrectly import comments after a field keycmd/cueforbidcue help helpin favor ofcue helpcmd/cueparse module.cue file in non-strict modecmd/cueadd test for mod edit strictness
cue32
cue/loadimplement shared syntax cachecue/loadmove syntax cache into fileSystemcue/loaduse constructor for fileSystemcue/loadCUE files only contain a single*ast.Filecue/loadmove towards unified syntax cachecue/loadremove import comment parsingcue/loadclean up allTagscue/loadcache file names onlycue/interpreter/embeddon't allow hidden files in globcue/interpreter/embedrespect module boundariescue/interpreter/embedrequire type if glob extension not specifiedcue/interpreter/embedfix handling of dir matching globcue/loadbetter treatment for build tags with respect to modulescueadd LanguageVersioncue/interpreter/embedadd support for embeddingcue/ast,specdocument thatpackage _is equivalent to missing packagecue/loaddo not consider anonymous packages when checking package qualifiercue/loadclarify the docs for Config.ModuleRootcue/formatprevent vertical tabs from causing extra indentationcue/formatavoid indenting a lone leading commentcue/...remove remnants of /*block*/ comment supportcue/formatadd test cases for issue 2496cue/encoding/jsonschemafix staticcheck errorscue/loadfix loading when Config.Package does not match default packagecue/loadadd tests for issue 3213cue/loadadd Config.AcceptLegacyModulescue/formatomit whitespace before the first clausecue/formatadd a regression test for issue 1544cue/formatrewrite TestFiles with testscriptcue/formatpreserve comments associated with ellipsiscue/formatadd tests for ellipsis comments in fmt -scue/formatensure a newline after every comment
encoding3
encoding/protobuf/textprotocorrectly decode required/optional fieldsencoding/jsonfix position for jsonlencoding/tomlimplement support for table arrays
internal13
internal/buildattrstop at package clause and support parenthesesinternal/buildattradd testsinternal/filetypesspeed up common caseinternal/cibump Go and goreleaser versions for the upcoming alphainternal/buildattrfactor out from cue/loadinternal/ciremove debug logging of commit messageinternal/core/runtimenew attribute name for externinternal/filetypessplit ParseFileinternal/cueversionbump LanguageVersion for v0.10internal/cialways check that git is clean when we finishinternal/core/adtfix pointer comparison issue in equalTerminalinternal/core/adtfix lifetime tracking of shared closeContextinternal/core/adtupdate TestX to include language version
mod5
mod/moduleallow versionless module path in CheckPathmod/modloadignore _test.cue files in dependenciesmod/modfileuse fixed language version for Fixmod/modfiledeprecate LatestKnownSchemaVersionmod/modfilealways allow missing major version in module field
pkg4
pkg/tool/execdocument how Run.cmd works with string versus listpkg/tool/execshow command arguments in errors as a Go slicepkg/listadd Reverse functionpkg/pathadd missing param declaration
Other12
interpreter/wasm,internal/filetypesfix wasm awkwardness- bump go-internal to get the latest testscript fixes
- update Go dependencies for the upcoming alpha
core/adtsimplify duplicate NumKind and NumberKind constscore/adtrename CompositKind to CompositeKindREADMElink to Slack and Discord via cuelang.orgtools/trimconvert inline tests to txtardoc/ref/implfix order of arguments in δ partial feature function- disallow explicit underscore import path qualifiers
READMEsimplify a bit, add new website links, add Discord invite- remove navbar.md and its supporting logo
- update github.com/emicklei/proto
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_ca50b6c9e6808ac906ebc5d9c397209e30f2815cf87d36d2d744dd8a29789f54 |
| macOS, Apple silicon | cue_3549677cf0629bce9c3464e7f9a236323cdc454985d016e28dbb02c692c5e1ed |
| Linux, x86-64 | cue_5a89a4253cc23b54da8065752caa5a7f7e87b5967804abf3a688aad0ca38c219 |
| Linux, Arm64 | cue_f386fefce9fac9ca652bc8ece104c028a389560d2707d0f528faaa4d7d5d6f5a |
| Windows, x86-64 | cue_b60093bb075e765fd8becfade8307b19fd5d62e51651089f2f0f19cddfdb431a |
| Windows, Arm64 | cue_70e2ac89f872a1721523e9d42510be7894bde05e7bcb783634f2839fbc23aef7 |
SHA-256 checksums for all of these: checksums.txt