v0.5.0

cue-lang/cue Released

A release of CUE OSS · its page on GitHub

This release focuses on changes to the implementation of comprehensions, the algorithm for detecting cycles in CUE, and the reimplementation of let comprehensions as fields.

Also included are a number of bug fixes and changes to help the KubeVela project upgrade off CUE v0.2.2 to the latest release. v0.5.0 is the first release since v0.4.3 back in April 2022. It has been a long time in the making, and is comprised of 277 commits.

It is worth noting that we do not plan nor wish for such long gaps between releases. For more details on upcoming releases and steps we are taking to increase release cadence as well as our confidence in each release, please see this discussion.

As a reminder: users can register their projects with unity, our regression and performance testing setup. unity is used to ensure that a project’s CUE evaluations do not unexpectedly stop working, or regress in terms of performance. unity continues to catch multiple issues with each release. Adding your project to unity not only guarantees that we will not break your tests (if we do, we will work with you to fix your CUE code), but it also helps to improve the quality of each CUE release. We are currently in the process of releasing Unity as a GitHub App on the public Marketplace. Sign up to receive updates; we will be in touch as soon as the GitHub App is ready.

Thank you to @djosephsen, @joaopapereira, @mpvl, @mvdan, @myitcv, @qequ, @rogpeppe, @rytswd, @satotake, @spachava753, and @tmm1 for contributing to this release!

Project-level changes

Various CI-related changes have been made to simplify and streamline the GerritHub-based CI setup across the various CUE repositories. A common base package is vendored into each repository and used as a template for GitHub workflows and other configuration. For those interested in studying the setup, please see the files beneath internal/ci.

This release drops support for go1.16.x , go1.17.x and go1.18.x, is tested against go1.19.x and go1.20.x, and is built using go1.20.2.

Our dependency on github.com/rogpeppe/go-internal is upgraded to v1.9.0 and various testscript-related improvements have been made to CUE’s tests.

GoReleaser has been upgrade to v1.16.2 as part of the release workflow. In a related change, CL 546920 moves us to a CUE-based source configuration for GoReleaser. This allows us to define the concept of ’latest’, state which indicates whether we should perform the homebrew release and the Docker manifest latest steps. This fixes a long-standing bug whereby homebrew taps and Docker images were created for the latest release, regardless of whether that was a pre-release, or indeed a patch version of a non-current minor version.

As of CL 547507, CUE build artefacts published on GitHub are entirely reproducible, thanks to Go’s support for reproducible, verifiable and verified builds.

Encoders

When cue import-ing YAML, the -R recursive flag now only recursively interprets text as YAML if it contains a newline CL 536902.

API

Various APIs have been transitioned to drop use of the deprecated cue.Runtime type, as well as migrating away from cue.Instance via cue.InstanceOrValue. Some use of these deprecated types remains: #1035, #1735, #1806. These will be tidied up in later releases as the API surface matures towards v1.0.0.

The cue package now supports InlineImports for Value.Syntax CL 541561. This leverages new support within the internal exporter to creating self-contained CUE. This change also deprecates Value.ResolveReferences().

Package cue adds Selector.Type to make it easier to pull out selector-specific information from a selector (for example, it makes it possible and cheap to retrieve the unquoted string label from a regular field selector) CL 542738.

Package cue adds Value.BuildInstance(). If a cue.Value exactly represents a package, BuildInstance() returns the build instance corresponding to the value CL 542769.

cue/stats is introduced as a new package for getting CUE operation statistics. The functionality is hoisted from internal/core/adt, but the package should for all practical purposes be seen as a new implementation. The stats have been aggregated as experimental functionality to the tools/flow package.

CL 546763 disallowed deprecated language features in the Go API. These features had long been deprecated in cmd/cue. This means that API operations will now fail on deprecated features whereas before they were handled in compatibility mode. The parser.FromVersion feature can be used to reenable these deprecated features.

Language

This release does not introduce any language changes. CL 537264 made some minor adjustments to the language specification to improve readability.

CL 541457 removes support for re-writing of old-style let declarations. This had already been deprecated for a long time and this change was made to enable support for aliases of embeddings.

Core evaluator

Per-field comprehensions

One of the major changes introduced in this release is how comprehensions are handled. CL 529524 move the evaluator to a model of per-field comprehensions.

Comprehensions are expanded for, if, and let clauses that yield zero or more structs to be embedded in the enclosing list or struct.

CUE does not allow cyclic dependencies between comprehensions if they result in an ambiguous set of fields. It does allow cascading insertions as in:

a?: int
b?: int
if a != _|_ {
    b: 2
}
if b != _|_ {
    c: 3
    d: 4
}

The way this works is that for fields with a fixed prefix path in a comprehension value, the comprehension is assigned to these respective fields.

More concretely, the above example is rewritten to:

a?: int
b: if a != _|_ { 2 }
c: if b != _|_ { 3 }
d: if b != _|_ { 4 }

where the fields with if clause are only inserted if their condition resolves to true. Note that this is not valid CUE; it may be in the future.

With this rewrite, dependencies in comprehension expressions are handled analogously to other expressions.

Note that a single comprehension may be distributed across multiple fields. The evaluator will ensure, however, that a comprehension is only evaluated once.

Analogous to reference cycles, as of CL 544129 we allow comprehensions to use the struct in which they are defined as source, as long as they do not introduce new fields, which would alter the source on which they iterate.

Reimplementation of cycle detection

The new algorithm is inspired by the cycle detection used by Tomabechi’s 1 and Van Lohuizen’s 2 graph unification algorithms.

Unlike with traditional graph unification, however, CUE uses references, which, unlike node equivalence, are unidirectional. This means that the technique to track equivalence through dereference, as common in graph unification algorithms like Tomabechi’s, does not work unaltered.

The unidirectional nature of references imply that each reference equates an exact copy of the value it points to. This renders the original approach of node-pointer equivalence useless.

The new algorithm, a variant of Tomabechi’s and Van Lohuizen’s algorithm, looks at references equality on conjuncts, instead of node equality. This simplifies the accounting and allows for far simpler and precise accounting when using references instead of the traditional node equivalence.

More background info on cycles

We have to define when a cycle is detected. CUE implementations MUST report an error upon a structural cycle, and SHOULD report cycles at the shortest possible paths at which they occur, but MAY report these at deeper paths. For instance, the following CUE has a structural cycle:

f: g: f

The shortest path at which the cycle can be reported is f.g, but as all failed configurations are logically equal, it is fine for implementations to report them at f.g.g, for instance.

It is not, however, correct to assume that a reference to a parent is always a cycle. Consider this case:

a: [string]: b: a

Even though reference a refers to a parent node, the cycle needs to be fed by a concrete field in struct a to persist, meaning it cannot result in a cycle as defined in the spec as it is defined here. Note however, that a specialization of this configuration can result in a cycle. Consider

a: [string]: b: a
a: c: _

Here reference a is guaranteed to result in a structural cycle, as field c will match the pattern constraint unconditionally.

In other words, it is not possible to exclude tracking references across pattern constraints from cycle checking.

It is tempting to try to find a complete set of these edge cases with the aim to statically determine cases in which this occurs. But as Carpenter 3 demonstrates, it is possible for cycles to be created as a result of unifying two graphs that are themselves acyclic. The following example is a translation of Carpenters example to CUE:

y: {
	f: h: g
	g: _
}
x: {
	f: _
	g: f
}

Even though the above contains no cycles, the result of x & y is cyclic:

f: h: g
g: f

This means that, in practice, cycle detection has at least partially a dynamic component to it.

The language specification contains a higher-level and more complete overview of structural cycles.

Reimplementation of let comprehensions

CL 543362 made a change to internal/core to reimplement let comprehensions as fields. This makes it easier to track context as let comprehensions then follow the same paradigm as fields. It also allows debug information to be shown as to where lets are added in the tree. This change was accompanied by number of others that refined the approach.

Self-contained export

internal/core/export now implements an algorithm for generating self-contained CUE on export, an option that can further be refined by asking the exporter to inline imports. These internal changes manifest in changes to cue def and cuelang.org/go/cue that are described elsewhere.

Other changes

CL 545897 started tracking stats within the core CUE tests. This book keeping helps to spot likely regressions in performance early by collocating the stats with the CUE that is being evaluated.

Builtins

In the strconv package, strconv.FormatInt and strconv.FormatUint now support arbitary-precision format; see CL 538512.

CL 545898 improved the error messages for pkg builtins, by including the path in error in many cases, and passing a wrapped message for encoding/yaml.

CL 546237 allows incomplete list.MinItems constraints. Before it either returned false or true, ignoring that making a configuration more specific might still satisfy MinItems later on. CL 546238 made a similar change for struct.MinFields.

Tooling layer

Standard input is now parsed correctly in cue cmd-declared command tasks; see CL 541898.

cmd/cue

Version control system (VCS) information is included in cue version as of CL 540297. The Go version used to build cmd/cue is included as of CL 549302.

cue def now supports an --inline-imports flag which resolves imports to print a self-contained version of the command input. For example, given the txtar input:

-- cue.mod/module.cue --
module: "example.com/a"

-- in.cue --
package a

import "example.com/a/pkg"
import "list"

v: pkg.v

-- pkg/pkg.cue --
package pkg

v: { x: 3, y: x }

The running cue def --inline-imports in.cue will give:

package a

import "list"

v: {
	x: 3
	y: x
}

CL 546243 fixed a long-standing bug whereby the --ignore errors flag was not observed by cue eval.

All changes

278 changesby area

all19

  • allremove mistakenly added file@mpvl68445d8
  • allapply and follow Go 1.19's gofmt@mvdan519d326
  • allstart using testscript.Params.RequireExplicitExec@mvdan37a2a07
  • alluse txtar filename extensions consistently@mvdanc1689bb
  • allapply Go 1.19's gofmt@mvdan3f3f181
  • alluse the .test TLD for module paths in tests@mvdan5a08d2f
  • allfix migration to x/tools/txtar@myitcv0a46a16
  • allfix common pattern of calling cuextxtar.Load@myitcvbdaadc9
  • allswap rogpeppe/go-internal/txtar for x/tools/txtar@mvdan9f3d9d2
  • alluse go-cmp.Diff more consistently@mvdanb30eb99
  • allreplace filepath.Walk with WalkDir@mvdan79b324d
  • allavoid using too many packages.Need bits@mvdanaa9b1bd
  • allfix a few more staticcheck nits@mvdan92b9a06
  • allmake use of t.TempDir and t.Setenv@mvdan6634a00
  • alldrop support for Go 1.16.x@mvdanbd9ae53
  • allmake vet happy@mvdana58ac53
  • allcheck the filepath.Walk error parameter@mvdan2caf6e0
  • allfix a few minor typos spotted by gospel@mvdan7881588
  • allremove redundant interface type assertions@mvdan74d55b7

cmd17

  • cmd/cueinclude Go in the version command@mvdan9b1f248
  • cmd/cueadd evaluator stats support@mpvld573e0c
  • cmd/cueadd tests for issue 345@mpvl352a736
  • cmd/cuedon't panic in vet if a schema has incomplete errors@mvdanf6841d1
  • cmd/cuefix --ignore errors flag@mpvlab14c86
  • cmd/cue/cmdtestscript moved its gopath location@mvdan4a73630
  • cmd/cueremove all stdin buffering@mvdanb4d1b16
  • cmd/cue/cmdadd --inline-imports flag@mpvl974a09b
  • cmd/cue/cmdremove bits of unused code@mvdan4d7edeb
  • cmd/cuesupport buildinfo in version sub-command@djosephsenb8703c8
  • cmd/cueuse cue in test scripts rather than exec cue@mvdan621f437
  • cmd/cue/cmdremove usage of cue.Runtime@mpvl0b0f1d3
  • cmd/cueinitialize toTop and toString without go/packages@mvdan0f66c58
  • cmd/cueremove the need for embedpkg@mvdan89c6cdc
  • cmd/cueremove duplicate files from get_go_types.txt@mvdaneb0a4ff
  • cmd/cueimport -R: don't treat text with no newlines as YAML@rogpeppef207b0b
  • cmd/cuebetter test for import --recursive@rogpeppe7f3c0a2

cue19

  • cue/testdata/benchmarksadd benchmark for let key@mpvla8d7c59
  • cue/export/extractfix comments with comprehensions@mpvl959dc46
  • cue/parserdisallow deprecated language features in API@mpvl67ace83
  • cueupdate Value.Source doc comment@rogpeppe45ce7a3
  • cue/astfix StructLit.End@rogpeppeb23ece3
  • cue/testdata/benchmarksadd stats@mpvl3bcf4a4
  • cue/statsnew package for getting operation statistics@mpvl535d188
  • cuetweaks to selector API@mpvlcd27b12
  • cueadd Value.BuildInstance method@rogpeppea552c1f
  • cueadd Selector.Type API@rogpeppe8e8f1cf
  • cue/loaddeterministically sort CUE files when loading@mvdan295786e
  • cuesupport InlineImports for Syntax@mpvlae56267
  • cue/formatfix StructLit trailing comma bug@satotaked16c799
  • cue/loadactually apply the latest doc wording per the reviews@mvdanf32ea8e
  • cue/loadremove old reference to a "query tool"@mvdan03ed417
  • cue/pkg/strconvsupport arbitary-precision format@satotake9bda220
  • cue/formatescape tabs when printing comments, literals, and attributes@mvdandac4917
  • cue/literalallow escaped newlines in multiline strings@rogpeppe618e530
  • cue/scannerallow leading double-quote in #-quoted string@rogpeppedb398ad

doc8

  • docsimple whitespace change to track down GerritHub replication issue@myitcv1bb7fed
  • doc/ref/spec.mdbinary literals support _ separators as well@spachava753712d8c6
  • doc/tutorial/kubernetesmark both tests as long@mvdan06aaef6
  • doc/tutorial/kubernetesonly run as a long test@mvdan6551ea5
  • doc/tutorial/basicsmake test scripts run again@mvdan6cb877e
  • doc/specminor adjustments after a careful read@mvdancf3ba23
  • doc/contribute.mdsimplify code backticks@rytswd193e320
  • doc/refmention that newlines can be escaped in multiline strings@rogpeppe13918dd

encoding5

  • encoding/gocodeencode hex consistently like Go 1.19+@mvdanf5c3e4e
  • encoding/gocodebe resilient to Go string literal changes@rogpeppe1cfb57c
  • encoding/openapiupdate API@rogpeppe74566cf
  • encoding/yamlbe clearer about the role of the src argument@rogpeppe351a9fb
  • encoding/protobufupdate dependencies@mvdan31be9e3

internal176

  • internal/cifix cache eviction@myitcva1d9054
  • internal/ciaddress review feedback from CL 551352@myitcvaf01db1
  • internal/ciallow trybot workflows to be workflow_dispatch-ed@myitcv22156ef
  • internal/cirefactor CI workflows@myitcva4403eb
  • internal/ciremove hard-codings in base package@myitcv0eaee71
  • internal/cimove evict_caches to base@myitcv584b21e
  • internal/ciremove mention of matrix and runner from base@myitcv7c07680
  • internal/ciremove trybot from push branches@myitcv9f3af8f
  • internal/cirefactor base caching pattern@myitcv390bca5
  • internal/cidrop pullThroughProxy step@myitcva14fbf4
  • internal/cibump pinned version of Go for releases@mvdan374a2cc
  • internal/core/adtrevert fix for 2209@mpvlc0421b4
  • internal/core/adtfix possible infinte loop for API usage@mpvl1ce9120
  • internal/core/adtfix regression in comparing to bottom@mpvl87c79ef
  • internal/core/adtremove unnecessary check@mpvl28321f6
  • internal/core/adtdetect closed lists as fatal errors@mpvl5d42c6c
  • internal/core/adtsharpen condition for scalar setting@mpvl3ba76ba
  • internal/cifix goreleaser in non-snapshot mode again@mvdan576d0e4
  • internal/core/adtfix 2235@mpvlca411de
  • internal/core/adtadd tests for 2235@mpvl89693e1
  • internal/cifix and test the release workflow on branches@mvdan63749fe
  • internal/core/adtfilter more disjunctions@mpvl5a6bd19
  • internal/core/adtadd tests for 2209@mpvl6b45d7e
  • internal/core/adtimprove mechanism for conjunct insertion@mpvl887f564
  • internal/core/adtadd tests for conjunct insertion@mpvl81e4cba
  • internal/core/adtonly set scalar if not already defined@mpvlf23e3d5
  • internal/cimake github CLI shell invocations safer@mvdan94765d6
  • internal/coreclone let upon use of for var references@mpvl3a79e96
  • internal/core/debugchange notation for "multi" lets@mpvlfd05908
  • internal/core/adtdon't add errors to "void" arcs@mpvl0b41dbb
  • internal/core/adtevaluate expressions directly@mpvl8fb13d4
  • internal/core/evalnode should not finalize itself mid flight@mpvl9d27e0d
  • internal/cideploy [tip.cuelang.org](http://tip.cuelang.org/) via repository_dispatch@myitcv632cc62
  • internal/cienable push_to_tip_trybot@myitcvfe692c5
  • internal/ciapply various CI-related changes from [cuelang.org](http://cuelang.org/) repo@myitcv4eaa946
  • internal/ci/goreleaseractually make builds reproducible@myitcv45aa5c0
  • internal/ci/goreleasermake builds reproducible@myitcv16edb00
  • internal/core/adtdon't evaluate inlined structs prematurely@mpvl45ff282
  • internal/core/adtadd tests for issue #2163@mpvla9f4fc3
  • internal/cireview follow-up changes to goreleaser_tool.cue@mvdan7ea44a3
  • internal/ciswitch to CUE based definition for goreleaser@myitcv79a476b
  • internal/ciimport for current goreleaser configuration@myitcve69c517
  • internal/ciupgrade to later GitHub workflow schema@myitcvf036b34
  • internal/ciupgrade to latest GoReleaser version@myitcv248f2b3
  • internal/ciuse newer versions of the docker github actions@mvdanf56600d
  • internal/core/adtbase error mode on requested state@mpvl214e112
  • internal/core/adtonly set validation result when safe@mpvl88857e0
  • internal/core/adtpass desired state to more functions@mpvl55cdb74
  • internal/core/adtpass more state around@mpvl3dfeb41
  • internal/core/adtpass state to validation@mpvl0954c6f
  • internal/core/adtpass state to evaluate@mpvl7d50228
  • internal/core/adtavoid duplicate insertion of conjuncts@mpvld341814
  • internal/core/adttighten uniqueness of conjuncts@mpvla68c6ce
  • internal/core/adtremove nested comprehension special casing@mpvl3c0b2ec
  • internal/core/adtdisambiguate let cache@mpvl43fc681
  • internal/core/adtupdate stats to fix build breakage@mpvla800e6f
  • internal/core/adtmerge Conjunct and Partial processing@mpvl121894c
  • internal/core/adtremove assertion@mpvl129c343
  • internal/core/adtadd test cases for issue 2119@mpvl2499719
  • internal/core/adtadd tests related to Issue #2113@mpvl525648d
  • internal/core/adtevaluate let fields earlier in comprehensions@mpvle5fb5af
  • internal/core/adtdetect cycles in patterns@mpvlc048135
  • internal/core/adtfix comprehension cycle regression@mpvl32bfffd
  • internal/core/adtadd tests to address regressions@mpvl82bf036
  • internal/core/adtsplit some tests into files@mpvl69ee994
  • internal/core/adtfix panic using builtin validators@mpvl9bbc14b
  • internal/core/adtdon't bump state@mpvlb18d00f
  • internal/core/adtprevent early error assignment@mpvl27b6e87
  • internal/core/adtrelax cycle tracking@mpvl9c761dd
  • internal/core/adtadd tests for #2052@mpvl6162b95
  • internal/core/adtfix redundant errors in calls@mpvl959605e
  • internal/core/adtimproved reporting disjunction errors@mpvla8d68ad
  • internal/core/adtavoid uninformative cyclic error@mpvl1d8d8ff
  • internal/core/adtremove over-aggressive deduplication@mpvl74b4288
  • internal/core/adtfix error checking bug@mpvl28088ac
  • internal/core/adtadd cycle detection for alt evaluation path@mpvl4eb2280
  • internal/core/adterrors in let expressions are okay@mpvl30b2007
  • internal/core/adtadd stats@mpvle2a0ef6
  • internal/core/dephandle recursive lets@mpvl1d8663e
  • internal/core/adtfix comprehension bug@mpvl87347d2
  • internal/core/adtremove redundant state change@mpvl24576a0
  • internal/third_party/yamlfix float parsing@rogpeppea4941ed
  • internal/third_party/yamlslim down API@rogpeppe794d078
  • internal/core/adtrecursively pre-expand comprehensions@mpvl102b034
  • internal/core/adtrepresent comprehension clauses as list@mpvlb3bcc7a
  • internal/core/depremove useless code@mpvl309b965
  • internal/core/adtfix cycle detection bug for lets@mpvlf2b9479
  • internal/core/adtallow self-referential comprehensions@mpvlf1daf4b
  • internal/core/adtupdate state constants and docs@mpvle4f4900
  • internal/core/adtadd conjuncts to dynamic list as well@mpvl637a325
  • internal/core/adtreport cycle error in comprehension source@mpvl6668dc8
  • internal/core/adtrename test@mpvlf30a8e7
  • internal/core/adtadd IsDefined to filter out void arcs@mpvl2ae37df
  • internal/core/adtfix closedness regression@mpvled4f885
  • internal/core/depfix comprehension environment binding@mpvl6824f7d
  • internal/core/adtfix broken let lookup in embedded scalars@mpvlcad3f23
  • internal/core/adtoptimize cycle detection for disjunctions@mpvl830b138
  • internal/citest and release on Go 1.19.x@mvdanfe50dff
  • internal/core/adtremove problematic Ref deletion@mpvl7518952
  • internal/core/adtadd test for issue 1837@mpvl839e33b
  • internal/core/adtmake some errors semi-permanent@mpvl4a3a494
  • internal/core/adtreduce size of ErrorCode@mpvl53dfffa
  • internal/core/exportfix crash in dynamic fields@mpvlad253ed
  • internal/coreimplement let as fields@mpvl36bd656
  • internal/core/adteliminate disjuncts for incomplete errors@mpvlc556a19
  • internal/core/adtfix test@mpvld3959eb
  • internal/core/adtadd tests for let@mpvl7c7056c
  • internal/core/compileprepare for let change@mpvl739713c
  • internal/core/...fix various attributes printing issues@mpvl82933ad
  • internal/core/adtremove StructInfo for unused structs@mpvlc89ab8b
  • internal/core/compileadd missing import in test@mpvlbe9cc0d
  • internal/cuetxtaradd method for getting a single instance@rogpeppee5f21db
  • internal/filetypesnot a file extension if the file starts with a dot@rogpeppedb0897b
  • internal/core/adtdefensive use of CloseInfo@mpvl9e9786e
  • internal/filetypesfix TestParseFile tests@rogpeppe3290797
  • internal/cuetxtarimprove docs@rogpepped2250b9
  • internal/core/pathpackage for Selector to Feature conversion@mpvl4c9d0ac
  • internal/core/adtfix cycles in evaluation@mpvlac11215
  • internal/core/adttighten structural cycle detection@mpvlf8e363e
  • internal/core/adttighten structural cycle detection@mpvl68152ec
  • internal/core/adtfix spurious cycle for inline recursion@mpvlc997044
  • internal/core/adtfix issue with references cycles@mpvlcd4bf2b
  • internal/core/adtsome fixes to structural cycle detection@mpvl8133f55
  • internal/core/compilefix aliases to dynamic fields@mpvl353833c
  • internal/core/adtcount conjuncts@mpvl1a12916
  • internal/core/adtfinalize arcs that are almost done@mpvl8ee1127
  • internal/core/adtremove redundant line@mpvl37ee967
  • internal/core/adtclean up some span logic and add a comment@mpvlce30e67
  • internal/core/adtmove Label for better bin packing@mpvle398e10
  • internal/core/adtclean up some closedness code@mpvl9e15ca1
  • internal/core/adtfix spurious child error@mpvl830847b
  • internal/core/adtpick defaults for label evaluation@mpvl83d37e7
  • internal/core/adtSpawnRef loop optimization@rogpeppe7292034
  • internal/core/adtfix spurious cycle@mpvle187f9f
  • internal/core/adtreimplementation of cycle algorithm@mpvl6b3fd65
  • internal/core/adthoist cycle logic@mpvleab8c8e
  • internal/core/adtpass Conjunct instead of Environment to Resolve@mpvl428d395
  • internal/core/adtdon't spawn duplicate locations@mpvl3bedf8e
  • internal/core/adtfix env linking for comprehensions@mpvlb00f5d6
  • internal/core/exportdon't inline for errors@mpvle87bc25
  • internal/core/exportenhancements for import inlining@mpvl62fedc3
  • internal/core/exportimplement self-contained algo for export@mpvlc71f674
  • internal/ciuse consistent name for CUELANGORGTIPREBUILDHOOK@myitcva9f8bd2
  • internal/difftwo different errors are equal@mpvl6e95220
  • internal/core/exportcleanup of initialization and finalize@mpvl8a7ebf9
  • internal/core/exportsimplify dynamic labels@mpvl8edd739
  • internal/core/exportrefactor uniqueFeature@mpvl9777511
  • internal/core/exportfix bug exporting dynamic references@mpvl360ef5f
  • internal/core/adtclarify examples for references@mpvl5cb52c8
  • internal/core/exporthoist FieldReference logic@mpvl82a2513
  • internal/core/exportpass Environment@mpvl254d0de
  • internal/core/exportmove tests to subdir@mpvl08c0689
  • internal/core/exporthoist reference logic@mpvl580edf4
  • internal/ci/githubskip non-race tests when running race tests@myitcv4113ec3
  • internal/cirefactor CI workflows@myitcv236a565
  • internal/cisplit github workflows into separate files@myitcv9d366cd
  • internal/ciwrite netrc file for triggering trybots@myitcv62ccbc0
  • internal/cimove to using gerritstatusupdater@myitcvf28ad41
  • internal/cirename test and repository_dispatch workflows@myitcvd4526fe
  • internal/cimove workflow declarations to their own package@myitcv2795dcc
  • internal/cistop using txtar tests for GitHub actions workflows@myitcv1876276
  • internal/core/adtremove stutter in error@mpvl41ceff3
  • internal/core/adtkeep arc on comprehension error@mpvl309f8e7
  • internal/core/adtuse per-field comprehensions@mpvl748a685
  • internal/core/adtmove closedness check@mpvlabd2ba3
  • internal/core/adtprepare for comprehension change@mpvl38b5fe2
  • internal/core/adtremove redundant indirection@mpvl5201fde
  • internal/core/adtadd convenience logging method@mpvlee36170
  • internal/encodingalways validate when exporting@qequ5b8860a
  • internal/ciavoid merge commits when testing GitHub PRs@mvdan6de1c17
  • internal/encoding/yamlupdate dependencies@myitcvef1b8aa
  • internal/corecomment improvements@rogpeppe34782fe
  • internal/ciremove gorelease check step@mvdanc942d0a
  • internal/cienforce Signed-off-by temporarily@mvdan7dd325d
  • internal/cibump GitHub Actions OS versions@mvdandb3e6ac
  • internal/cuetestdrive long tests via an env var@mvdan33b18be

pkg12

  • pkg/listmake error of MaxItems consistent with MinItems@mpvlc5fbbab
  • pkg/structfix MinFields analogously to MinItems@mpvl849371d
  • pkg/internalallow incomplete list.MinItems@mpvl354f4e6
  • pkgimprove error messages@mpvlfa36be4
  • pkgreuse pkg/gen to generate package godocs@mvdandf148ee
  • pkg/tool/clirework Stdin and make Ask read an entire line@mvdan4432aa6
  • pkg/genremove unreachable code@rogpeppe2f05fc9
  • pkg/gengenerate (almost) all pkg.go files in one call@rogpeppe23dc354
  • pkg/internalmake it clearer that const is exclusive to func@rogpeppee77a879
  • pkg/strconvRevert "pkg/strconv: allow string argument for format"@rogpeppe1ed6195
  • pkg/strconvallow string argument for format@rogpeppe053c4ac
  • pkg/list/sortfix syntax in docs@tmm100c5ddf

tools3

  • tools/flowadd debug support via CUE_DEBUG_TOOLS_FLOW@myitcvd85f950
  • tools/fixremove rewriting support for old-style let@mpvl9a66c51
  • tools/flowget rid of deprecated cue.Runtime@mpvl3ac85dc

Other19

  • [release-branch.v0.5] internal/ci: use go1.19.8 for the release of v0.5.0@myitcvd780488
  • [release-branch.v0.5] internal/ci: bring inline with be0601bf@myitcvf4d04a7
  • githubbring the bug report template up to date@mvdanb75fdc8
  • goreleaserformatting changes in Yaml file@myitcve93b5ed
  • READMEfix the stale GitHub Actions badge@mvdan4fee020
  • infraupgrade goreleaser@myitcv7bdeb14
  • drop support for Go 1.17.x ahead of the v0.5 release@mvdan0292e7f
  • depsbump [golang.org/x/text](http://golang.org/x/text) dependency@joaopapereiradd1169c
  • .gitignoreadd .DS_Store@mpvl79d80ef
  • errorsmake Errors and Print respect wrapped errors@rogpeppe4007775
  • moddrop x/xerrors from the module graph@mvdan0460b47
  • moddrop apd v1 from the module graph@mvdand663a8c
  • CIonly pull master commits through a proxy on Linux@mvdan395df20
  • CItry "pull through proxy" go get up to five times@mvdan4f15036
  • interal/diffskip hidden fields by default@mpvl5151417
  • .gitignoreignore some binaries@mpvl2d10d0f
  • cuegofix example in docs@rogpeppe2fea90a
  • Revert "all: avoid using too many packages.Need bits"@mvdan87408d7
  • bump x/tools and x/net dependencies@mvdan79a3fa7

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.5.0_darwin_amd64.tar.gze2cede1965afa66dc52de7c1cd461227f4ff924f7a2adc9791cf1a699485409f
macOS, Apple siliconcue_v0.5.0_darwin_arm64.tar.gz00fc991977232240893ae36dc852366af859214d6e1b2b9e03e93b8f9f0991a7
Linux, x86-64cue_v0.5.0_linux_amd64.tar.gz38c9a2f484076aeafd9f522efdee40538c31337539bd8c80a29f5c4077314e53
Linux, Arm64cue_v0.5.0_linux_arm64.tar.gz735fa1b9bb02ef0ee79dd40c418760687776b44747f43f2e26c3bca4e1fd96f6
Windows, x86-64cue_v0.5.0_windows_amd64.zip0aec9ea6b4095250406f8072d959bbea4c29bdcf9f85579f2c6dc915ce75082e
Windows, Arm64cue_v0.5.0_windows_arm64.zip262f381041d6ebdf6a8b87fe482077efd9212e7d195a81fe437a2c24afe4d871

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


  1. https://aclanthology.org/C92-2068 Hideto Tomabechi. 1992. Quasi-Destructive Graph Unification with Structure-Sharing. In COLING 1992 Volume 2: The 14th International Conference on Computational Linguistics. ↩︎

  2. https://aclanthology.org/P00-1045/ Marcel P. van Lohuizen. 2000. “Memory-Efficient and Thread-Safe Quasi-Destructive Graph Unification”. In Proceedings of the 38th Annual Meeting of the Association for Computational Linguistics, pages 352–359, Hong Kong. Association for Computational Linguistics. ↩︎

  3. Bob Carpenter, “The logic of typed feature structures.” Cambridge University Press, ISBN:0-521-41932-8 ↩︎

Install CUE