v0.4.1
After an extended break following CUE’s migration to cue-lang/cue and multiple pre-releases, the v0.4.1 release mainly focuses on bug fixes. We also renew our pledge to in future release smaller changes more frequently on our way to language stability.
Thank you to @chai2010, @yujunz, @caarlos0, @hrvolapeter, @slewiskelly, @antong, @mvdan, @ameowlia and @palmamartin for contributing to this release!
Project-level changes
- Create
amd64andarm64release assets forlinux,windowsanddarwin, with accompanyingamd64andarm64Docker images and manifests:v0.4.1-beta.6 - Remove
go1.15from build matrix:v0.4.1-beta.6 - Improve contribution project contribution guide:
v0.4.1-beta.6
Encoders
- Upgrade
gopkg.in/yaml.v3; may result in some formatting changes for Yaml output:v0.4.1-beta.6
cmd/cue
- Support working directory in
tool/exec.Run:v0.4.1-beta.6 - Numerous bug fixes relating to
cue evalexporting ofletexpressions (#1116):v0.4.1-beta.6 - Fix for
cue defbug where multiple list conjuncts resulted in an output containing a{}conjunct:v0.4.1-beta.6
API
cue.ResolveReferencesfixed to work for the KubeVela project:v0.4.1-beta.6- @ameowlia fixed an issue with a test example for
cue.Context:v0.4.1-beta.6 - Allow concurrent use of
cue.Context:v0.4.1-rc.1
Evaluator
- Fix a number of issues related to the use of aliases in lists by introducing a new scope with list values:
v0.4.1-beta.6 - Fix for issues related to defaults and string and number lists (#1025, #1404):
v0.4.1-beta.6 - Fix for a bug where comprehensions inside a definition resulted in an error (#1404):
v0.4.1-beta.6 - Important fix for bug related to the handling of default values that result in error (#1304 and #1257):
v0.4.1-beta.6 - Various unexpected panics have been fixed, including a panic in the case of circular
letdeclarations (#1042):v0.4.1-beta.6 - Fix matching of
"_"label:v0.4.1-rc.2
Language
This release makes no changes to the language.
- The CUE spec now correctly defines
$as an identifier (#1264):v0.4.1-beta.6
Docker images
docker pull docker.io/cuelang/cue:0.4.1
All changes
80 changesby area
ci16
ciconfigure GoReleaser to mark prereleases as such 547e5cc2cionly trigger new version events after successful new version 6e68ca4ccifix GoReleaser arm64 template details 795719e3cifix target for homebrew tap b68f4c3ccifix up GoReleaser image template names 02556bc2ciuse GoReleaser v1.0.0 e7da62faciremove go1.15 from the build matrix e62a95abcicorrect location of unity 718c9a07ciupdate to use go1.17.3 and go1.16.10 9217c4d0cilatest Go versions in build matrix ddd96c66ciimprove goreleaser workflow 370fac9bcitidy up encoding of JSON args to curl a4a38ed8cire-enable full CI workflows 7d25ee23citidy up quoting of JSON args in workflow commands 59079b1acifix Docker workflow 6da50d98cifix up new version trigger 0070bb10
cmd5
cmd/cueconfirm issues 1152 and 1153 are fixed 4d505e0dcmd/cueget go: ignore anonymous enums eb53c4e3cmd/cue/cmdimprove shell arg parsing in tests 4e76bb47cmd/cuerevert version string change ecb17c94cmd/cuefix up get go docs around "enum" types ec427f98
cue10
cueremove duplicate test code 8fbaf81ecue/cuecontextallow concurrent use 25cfb208cuesupport ResolveReferences f68e000ecueauto-unwrap single embedded value in Expr 061e661acuefix output in ExampleContext f8804677cue/testdatahoist let cycle errors 4f3988facuefix subsumption bug for disjuntion filtering b89ad85fcueExpr handles empty lists to or/and builtins 9bb874c9cuedefine all Op constant values explicitly with that type 72936e43cuedefine all Kind constant values explicitly with that type fca61f5b
doc11
docensure all min Go versions refer to 1.16 79303b6ddoc/ref/spec.mdinclude$in identifier 75c3d6b7doc/tutorial/kubernetesupdate types b9ac1eabdocrevamp contribution guide ahead of contributing live-stream dbf59922doc/ref/specfix typos and heading anchors 437920eadocfix repeated word typos in spec 35c2f3c5docremove useless whitespace in main README e8550b89doc/contribupdate git codereview change to use -s flag 0f53054ddoc/tutorialfix errant use of list operators 38c8f7d7doc/tutorial/kubernetesfix invalid user commands aa61ee7fdoc/tutorial/kubernetesupdate k8s version 67bf363b
internal18
internal/core/runtimecheck non-existing builtin packages earlier d4d0f142internal/core/adtuse single return for LoadImport e5c71761internal/core/adtfix matching of "_" label 3d3f721dinternal/core/exportkeep open lists open d413bb83internal/core/exportfix let exporting 9a040dcfinternal/core/adtfix regression of dynamic closed fields in definitions 6c306785internal/core/exporttreat empty data vertices as structs 9e7d4d63internal/core/adtclose open lists for Default b99ce0adinternal/core/exportfix bug with API-generated top-level close c490d4cfinternal/core/adtdon't cache incomplete errors for let 99825265internal/coreuse scope for lists 91476ab2internal/core/compileremove unnecessary code f65dd0f7internal/encoding/yamlupgrade go-yaml.v3 a8b721a8internal/core/exportdon't add empty temp struct 0e56b828internal/encoding/yamlcanonicalize non-string map keys c1c2cdaainternal/core/adtfix bound simplification for floats 59bdbb50internal/core/adtfix disjunction bug 62e876d1internal/core/compilefix let cycle error 20ed9abd
readme3
readmefix Go version badge 60d6503dreadmefix top-level CONTRIBUTING guide 5f28bb49readmelink to CoC from main readme and contributing guide 5ab75b8d
Other17
gitileschange logo from SVG to PNG 8a40ef07gitilescustomize navigation bar 28b42576pkgfix default issue for string and numbers lists 910ff4d5pkg/internalcompute combined error severity 7922f9baencoding/openapifix crash in reference 15adb6c4encoding/yamlquote strings more aggressively a83c6c6b- simplify install instructions assuming Go 1.16+ 29a686d8
specUpdate example with regards to pattern constraints 8031fe7cfeatupdate go build matrix 5cf1aa16generaluse cuelang.org/issues as the general issue link 35c4960fgithubfix up empty issue template a68df18dgithubtidy up issue templates 723a7fe4generalupdate unity location 3d9cd71ballchange references from cuelang/cue to cue-lang/cue 06484a39- Allow setting working directory for exec.Run 8e053d40
interanal/core/runtimeremove commented out fields e8de4b1f- Full Changelog: https://github.com/cue-lang/cue/compare/v0.4.0...v0.4.1
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_9904f316160803cb011b7ed7524626719741a609623fe89abf149ab7522acffd |
| macOS, Apple silicon | cue_ff47c8e52a82aa3cf5d02647a6422dd9e824c5210607655a6c8abe700eae56d1 |
| Linux, x86-64 | cue_d3f1df656101a498237d0a8b168a22253dde11f6b6b8cc577508b13a112142de |
| Linux, Arm64 | cue_e0d63e0df5231687acfd6da09bd672b5b11008a4cfa1927046ec9802864280e6 |
| Windows, x86-64 | cue_5bfb9934b71878633691dc0b373214105361491effa28461abb336c338c41176 |
| Windows, Arm64 | cue_1b9b7ddf17ec59447147e8199207bf3e3311f242d7b745ea317679f01782779a |
SHA-256 checksums for all of these: checksums.txt