v0.16.1
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 unsupportedcmd/cueadd testscript for cue login when device code endpoint is unsupportedcmd/cueclarify how to authenticate with standard OCI registriescmd/cuereturn an error for non-label --path expressions instead of panicking
internal6
internal/cueversionbump to v0.16.1internal/cibuild releases with Go 1.26.2internal/core/compileavoid mutating ASTinternal/core/exportfix alias/field name conflict in pattern constraintsinternal/core/exportadd regression test for alias/field name conflictinternal/core/convertfix panic when encoding pointer-receiver marshalers
Other6
- update all golang.org/x/... dependencies
allrename fallback keyword to otherwiselsp/cacheimprove renameintegration/workspaceadd test showing bad behaviourpkgfix godoc mistakes across several packagesencodingadd godoc hints for cue/ast result types
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_97b0d78e4c5ee49ff72145fd6ef4f4bab0bb332d55f29660de3fec2af5ec96a9 |
| macOS, Apple silicon | cue_a72b0cddb377c52d1b003bed9a335d893b70cd75a182cd5e3fee8bae30ddb6d6 |
| Linux, x86-64 | cue_5d644c1305a2b86504c8dcd2ec829cf5b4999efc2cf51ee375624e0455f774ae |
| Linux, Arm64 | cue_3cc715a9e969f87b93c4fa34cfaef5388b93e96efa20b248e8ad6826abd25a83 |
| Windows, x86-64 | cue_2f24123f458229fcf283db534bd86692ad1074da806defee0f0cc62976c0397c |
| Windows, Arm64 | cue_e0c15ce53f73e8609b0e8ce6507298f3474b334ac5eb0c826c9497a811fd0cce |