v0.4.1

cue-lang/cue Released

A release of CUE OSS · its page on GitHub

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 amd64 and arm64 release assets for linux, windows and darwin, with accompanying amd64 and arm64 Docker images and manifests: v0.4.1-beta.6
  • Remove go1.15 from build matrix: v0.4.1-beta.6
  • Improve contribution project contribution guide: v0.4.1-beta.6

Encoders

cmd/cue

  • Support working directory in tool/exec.Run: v0.4.1-beta.6
  • Numerous bug fixes relating to cue eval exporting of let expressions (#1116): v0.4.1-beta.6
  • Fix for cue def bug where multiple list conjuncts resulted in an output containing a {} conjunct: v0.4.1-beta.6

API

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 let declarations (#1042): v0.4.1-beta.6
  • Fix matching of "_" label: v0.4.1-rc.2

Language

This release makes no changes to the language.

Docker images

  • docker pull docker.io/cuelang/cue:0.4.1

All changes

80 changesby area

ci16

  • ciconfigure GoReleaser to mark prereleases as such 547e5cc2
  • cionly trigger new version events after successful new version 6e68ca4c
  • cifix GoReleaser arm64 template details 795719e3
  • cifix target for homebrew tap b68f4c3c
  • cifix up GoReleaser image template names 02556bc2
  • ciuse GoReleaser v1.0.0 e7da62fa
  • ciremove go1.15 from the build matrix e62a95ab
  • cicorrect location of unity 718c9a07
  • ciupdate to use go1.17.3 and go1.16.10 9217c4d0
  • cilatest Go versions in build matrix ddd96c66
  • ciimprove goreleaser workflow 370fac9b
  • citidy up encoding of JSON args to curl a4a38ed8
  • cire-enable full CI workflows 7d25ee23
  • citidy up quoting of JSON args in workflow commands 59079b1a
  • cifix Docker workflow 6da50d98
  • cifix up new version trigger 0070bb10

cmd5

  • cmd/cueconfirm issues 1152 and 1153 are fixed 4d505e0d
  • cmd/cueget go: ignore anonymous enums eb53c4e3
  • cmd/cue/cmdimprove shell arg parsing in tests 4e76bb47
  • cmd/cuerevert version string change ecb17c94
  • cmd/cuefix up get go docs around "enum" types ec427f98

cue10

  • cueremove duplicate test code 8fbaf81e
  • cue/cuecontextallow concurrent use 25cfb208
  • cuesupport ResolveReferences f68e000e
  • cueauto-unwrap single embedded value in Expr 061e661a
  • cuefix output in ExampleContext f8804677
  • cue/testdatahoist let cycle errors 4f3988fa
  • cuefix subsumption bug for disjuntion filtering b89ad85f
  • cueExpr handles empty lists to or/and builtins 9bb874c9
  • cuedefine all Op constant values explicitly with that type 72936e43
  • cuedefine all Kind constant values explicitly with that type fca61f5b

doc11

  • docensure all min Go versions refer to 1.16 79303b6d
  • doc/ref/spec.mdinclude $ in identifier 75c3d6b7
  • doc/tutorial/kubernetesupdate types b9ac1eab
  • docrevamp contribution guide ahead of contributing live-stream dbf59922
  • doc/ref/specfix typos and heading anchors 437920ea
  • docfix repeated word typos in spec 35c2f3c5
  • docremove useless whitespace in main README e8550b89
  • doc/contribupdate git codereview change to use -s flag 0f53054d
  • doc/tutorialfix errant use of list operators 38c8f7d7
  • doc/tutorial/kubernetesfix invalid user commands aa61ee7f
  • doc/tutorial/kubernetesupdate k8s version 67bf363b

internal18

  • internal/core/runtimecheck non-existing builtin packages earlier d4d0f142
  • internal/core/adtuse single return for LoadImport e5c71761
  • internal/core/adtfix matching of "_" label 3d3f721d
  • internal/core/exportkeep open lists open d413bb83
  • internal/core/exportfix let exporting 9a040dcf
  • internal/core/adtfix regression of dynamic closed fields in definitions 6c306785
  • internal/core/exporttreat empty data vertices as structs 9e7d4d63
  • internal/core/adtclose open lists for Default b99ce0ad
  • internal/core/exportfix bug with API-generated top-level close c490d4cf
  • internal/core/adtdon't cache incomplete errors for let 99825265
  • internal/coreuse scope for lists 91476ab2
  • internal/core/compileremove unnecessary code f65dd0f7
  • internal/encoding/yamlupgrade go-yaml.v3 a8b721a8
  • internal/core/exportdon't add empty temp struct 0e56b828
  • internal/encoding/yamlcanonicalize non-string map keys c1c2cdaa
  • internal/core/adtfix bound simplification for floats 59bdbb50
  • internal/core/adtfix disjunction bug 62e876d1
  • internal/core/compilefix let cycle error 20ed9abd

readme3

  • readmefix Go version badge 60d6503d
  • readmefix top-level CONTRIBUTING guide 5f28bb49
  • readmelink to CoC from main readme and contributing guide 5ab75b8d

Other17

  • gitileschange logo from SVG to PNG 8a40ef07
  • gitilescustomize navigation bar 28b42576
  • pkgfix default issue for string and numbers lists 910ff4d5
  • pkg/internalcompute combined error severity 7922f9ba
  • encoding/openapifix crash in reference 15adb6c4
  • encoding/yamlquote strings more aggressively a83c6c6b
  • simplify install instructions assuming Go 1.16+ 29a686d8
  • specUpdate example with regards to pattern constraints 8031fe7c
  • featupdate go build matrix 5cf1aa16
  • generaluse cuelang.org/issues as the general issue link 35c4960f
  • githubfix up empty issue template a68df18d
  • githubtidy up issue templates 723a7fe4
  • generalupdate unity location 3d9cd71b
  • allchange 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

PlatformFile and SHA-256
macOS, Intelcue_v0.4.1_darwin_amd64.tar.gz9904f316160803cb011b7ed7524626719741a609623fe89abf149ab7522acffd
macOS, Apple siliconcue_v0.4.1_darwin_arm64.tar.gzff47c8e52a82aa3cf5d02647a6422dd9e824c5210607655a6c8abe700eae56d1
Linux, x86-64cue_v0.4.1_linux_amd64.tar.gzd3f1df656101a498237d0a8b168a22253dde11f6b6b8cc577508b13a112142de
Linux, Arm64cue_v0.4.1_linux_arm64.tar.gze0d63e0df5231687acfd6da09bd672b5b11008a4cfa1927046ec9802864280e6
Windows, x86-64cue_v0.4.1_windows_amd64.zip5bfb9934b71878633691dc0b373214105361491effa28461abb336c338c41176
Windows, Arm64cue_v0.4.1_windows_arm64.zip1b9b7ddf17ec59447147e8199207bf3e3311f242d7b745ea317679f01782779a

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

Install CUE