v0.18.0-rc.4

Pre-release Released

A release of CUE, published on cue.dev.

Evaluator

Fix two regressions introduced in earlier v0.18 pre-releases: a hang when selecting through optional fields of an inline struct, as in {x: y?: z?: int}.x.y.z (#4561), and __reclose structs written by cue fix which could stay open depending on evaluation order.

Fix a hang when a comprehension ranges over a field which is part of a structural cycle; the cycle is now reported as an error.

cmd/cue

Fix a panic in cue def when an aliased field refers to itself from within a quoted label of the same name, and avoid new names clashing with an import which cue def adds.

Modules

Fetching modules through a registry proxy which compresses its responses or omits Content-Length now works.

LSP server

The language server no longer fails to load a package whose directory holds a symbolic link to a directory, a broken link, or an unreadable file, and no longer blocks on a FIFO (#4491).

Fix a regression introduced in v0.17.0 where finding definitions and references failed through an import of a package from a transitive module dependency (#4553).

Go API

Fix a data race in cue.Iterator.Next and cue.Value.LookupPath on a value shared between goroutines, as well as spurious cycle errors and a panic in cue.Value.MarshalJSON when a for clause ranges over a field sharing a definition.

Fix a panic in cue.Value.Unify on a field of a definition which other fields share (#4549).

cue.Value.Subsume no longer overflows the stack when comparing recursive definitions such as #A: [...#A], and with cue.Final it now accepts data lists such as [] against [...string] under the openlists experiment (#4545).

Fix regressions introduced in earlier v0.18 pre-releases: in cue/format, an explicit indent width of zero indented with spaces, and an unsupported node type gave empty output rather than an error; and subsumption failed between open lists of different lengths.

cue/parser no longer takes quadratic or worse time on some pathological inputs, such as deeply nested parentheses, calls, or function signatures, long runs of invalid bytes, and many comment groups.

Downloads

Every file this release published, with its SHA-256. Most people install CUE as Installing CUE describes, which also shows how to check a download.

Installers

PlatformFile and SHA-256
macOS, Apple silicon and Intelcue_v0.18.0-rc.4_darwin_all.pkgc5c5da06d7956063d1c069537c68e721f67967ce486e67794087c5df93c78cdd
Windows, x86-64cue_v0.18.0-rc.4_windows_amd64.msi9565ff284187bd59741e621ae94a6ef41739ffe6318dbdef73c78b0af766eda3
Windows, Arm64cue_v0.18.0-rc.4_windows_arm64.msi9f4173db58e9b46f3b037caae1ba6be9b03ccf47f9b881a5c41d23c590ed486e

Archives

PlatformFile and SHA-256
macOS, Intelcue_v0.18.0-rc.4_darwin_amd64.tar.gz676346b22cf73b6ce86c4d1a7c3a1b066f36690adc01b2d8b48942e132797368
macOS, Apple siliconcue_v0.18.0-rc.4_darwin_arm64.tar.gzcb6acf37a0dde0f1cc4333468d3b63c6971cc71e02a7a05dffd8acb6d9384fbb
Linux, x86-64cue_v0.18.0-rc.4_linux_amd64.tar.gz14c6827fc3dbb7f99942b41838e682e20c2a19336d1bc975d82e1dde41b28a2e
Linux, Arm64cue_v0.18.0-rc.4_linux_arm64.tar.gz4d5ddcd4134b19c0fe037ae3387448dd43d4459f87c3209b065f633ef54de36b
Windows, x86-64cue_v0.18.0-rc.4_windows_amd64.zip07f38356890b7edf525d1ab186a633326fd0c9709a84b675a90d9eb229a36318
Windows, Arm64cue_v0.18.0-rc.4_windows_arm64.zipedfc9df402b7e75b1e59641dad7ee185e83b876c2d9ba8075f3cee0cf5c41f4b

SHA-256 checksums for all of these: cue_v0.18.0-rc.4_checksums.txt

Install CUE