v0.17.0-rc.1

cue-lang/cue Pre-release Released

A release of CUE OSS · its page on GitHub

Evaluator

A performance optimization for the or builtin function has been reverted, as it caused a regression when its arguments included cyclic references.

Fix a regression introduced since v0.16.0 where a “field set was already referenced” error could appear when using an if comprehension inside a let block.

To ease the transition into the new formatter we plan to release with v0.18, CUE_EXPERIMENT=formatv2=0 is now allowed as a no-op.

cmd/cue

Module replaces are adjusted to rename the replace field in cue.mod/local-module.cue to replaceWith. See the proposal discussion for more information.

The “filetypes” lookup tables now use a more compact encoding, saving about 150KiB in binary size for cmd/cue as well as Go API users.

All changes

22 changes since v0.17.0-alpha.3by area

cue10

  • cue/formatrevert #4296 regression test@mvdane73658d
  • cue/formatrevert manual-AST field alignment fix@mvdanc3f08a1
  • cue/formatrevert issue #1006 test cases@mvdan60e1bb7
  • cue/formatrevert list and call argument column alignment fix@mvdan3f7aafe
  • cue/formatrevert spurious empty line fix@mvdane2eb7f5
  • cue/formatrevert Option-behavior test@mvdan0fa6c09
  • cue/formatrevert default tab width change from 8 to 4@mvdan1e07f16
  • cue/formatrevert multiline string interpolation indentation fix@mvdan7190842
  • cue/testdata/evaladd test for issue 4392 list-in-let freeze regression@mvdan7d77fe7
  • cue/cmdmore replacement test cases@rogpeppea4372d3

internal5

  • internal/cueexperimentteach v0.17 about the formatv2 experiment@mvdan8d2db9d
  • internal/core/compilere-run with CUE_UPDATE=1@mvdan4bec06b
  • internal/cistop running trybot jobs with pull_request_target@mvdan61bcbc9
  • internal/filetypesshrink embedded toFile lookup tables@mvdan01907a9
  • internal/core/adtdo not freeze fieldSetKnown while an own field task is pending@mvdan906c3e9

Other7

  • cmd/cuetest sharing CUE_EXPERIMENT=formatv2 across v0.17 and v0.18@mvdanac083b5
  • Revert "internal/core/compile: return Disjunction directly from or() builtin"@mvdanbc31ef8
  • allhide the "ini" decoder for v0.17@mvdan0f15eed
  • allstop using "directive" terminology for module replaces@mvdan9916719
  • cmd/cuetest that mod publish rejects an invalid module path@mvdan376a328
  • mod/modfilerename the local-module.cue replace field to replaceWith@mvdanb32aca7
  • mod/modzipreject a downloaded module containing local-module.cue@rogpeppe4d73286

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.17.0-rc.1_darwin_amd64.tar.gzfb46948feb7b1047e3e301ad30fad84d483f6699bf0b7f2a5e43f762440f72b3
macOS, Apple siliconcue_v0.17.0-rc.1_darwin_arm64.tar.gz407cc19371dddb1694d496ccba1985b495a1d6b309fdb894e39495b0e37cab0e
Linux, x86-64cue_v0.17.0-rc.1_linux_amd64.tar.gz89a0e2a55a25d05ab02cd664edc050117a2be399a33a9ab8123944e3ad348942
Linux, Arm64cue_v0.17.0-rc.1_linux_arm64.tar.gz7d3199c9377d934b0186e53a02cabe503c1c306d3a0d58d4be6919bd78124353
Windows, x86-64cue_v0.17.0-rc.1_windows_amd64.zip52285f6d4a5d401e4e0fe900fa7107f84f575ab25ff3e350368075abf41be64d
Windows, Arm64cue_v0.17.0-rc.1_windows_arm64.zip03630b85a3fb1bbbb7bb0e4e275b9a275b6cebbba4861b25a661bd5b8570f52e
Install CUE