v0.16.1

cue-lang/cue Released

A release of CUE OSS · its page on GitHub

Language

The fallback keyword in the aliasv2 experiment is replaced by otherwise, which is clearer. cue fmt or cue fix can be used to rewrite existing code.

Evaluator

Fix a regression where the compiler could add comments to the input AST value, which could lead to increased memory usage.

Fix a bug where exporting certain schemas could result in “cannot have both alias and field in same scope” errors.

cmd/cue

Fix a panic which could occur when using non-label expressions in the --path flag.

Teach cue login to give helpful errors when used with OCI registries which don’t support the OAuth2 device flow.

Go API

Fix a regression where cue.Context.Encode could panic on custom marshaler types with pointer receivers.

All changes

16 changes since v0.16.0by area

cmd4

  • cmd/cuesuggest docker/podman login when OAuth2 device flow is unsupported@mvdanc169605
  • cmd/cueadd testscript for cue login when device code endpoint is unsupported@mvdand7c882a
  • cmd/cueclarify how to authenticate with standard OCI registries@mvdan2613edf
  • cmd/cuereturn an error for non-label --path expressions instead of panicking@mvdan5a55849

internal6

  • internal/cueversionbump to v0.16.1@mvdan6d609d7
  • internal/cibuild releases with Go 1.26.2@mvdancedf4c8
  • internal/core/compileavoid mutating AST@rogpeppee4b0516
  • internal/core/exportfix alias/field name conflict in pattern constraints@mvdan1e46409
  • internal/core/exportadd regression test for alias/field name conflict@mvdan1654f66
  • internal/core/convertfix panic when encoding pointer-receiver marshalers@mvdan8e39aec

Other6

  • update all golang.org/x/... dependencies@mvdanb4efeef
  • allrename fallback keyword to otherwise@mpvlf813811
  • lsp/cacheimprove rename@cuematthew8e47027
  • integration/workspaceadd test showing bad behaviour@cuematthewa5e0ef5
  • pkgfix godoc mistakes across several packages@mvdaneae9aaf
  • encodingadd godoc hints for cue/ast result types@mvdan682c663

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.16.1_darwin_amd64.tar.gz97b0d78e4c5ee49ff72145fd6ef4f4bab0bb332d55f29660de3fec2af5ec96a9
macOS, Apple siliconcue_v0.16.1_darwin_arm64.tar.gza72b0cddb377c52d1b003bed9a335d893b70cd75a182cd5e3fee8bae30ddb6d6
Linux, x86-64cue_v0.16.1_linux_amd64.tar.gz5d644c1305a2b86504c8dcd2ec829cf5b4999efc2cf51ee375624e0455f774ae
Linux, Arm64cue_v0.16.1_linux_arm64.tar.gz3cc715a9e969f87b93c4fa34cfaef5388b93e96efa20b248e8ad6826abd25a83
Windows, x86-64cue_v0.16.1_windows_amd64.zip2f24123f458229fcf283db534bd86692ad1074da806defee0f0cc62976c0397c
Windows, Arm64cue_v0.16.1_windows_arm64.zipe0c15ce53f73e8609b0e8ce6507298f3474b334ac5eb0c826c9497a811fd0cce
Install CUE