v0.17.0-rc.1
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 testcue/formatrevert manual-AST field alignment fixcue/formatrevert issue #1006 test casescue/formatrevert list and call argument column alignment fixcue/formatrevert spurious empty line fixcue/formatrevert Option-behavior testcue/formatrevert default tab width change from 8 to 4cue/formatrevert multiline string interpolation indentation fixcue/testdata/evaladd test for issue 4392 list-in-let freeze regressioncue/cmdmore replacement test cases
internal5
internal/cueexperimentteach v0.17 about the formatv2 experimentinternal/core/compilere-run with CUE_UPDATE=1internal/cistop running trybot jobs with pull_request_targetinternal/filetypesshrink embedded toFile lookup tablesinternal/core/adtdo not freeze fieldSetKnown while an own field task is pending
Other7
cmd/cuetest sharing CUE_EXPERIMENT=formatv2 across v0.17 and v0.18- Revert "internal/core/compile: return Disjunction directly from or() builtin"
allhide the "ini" decoder for v0.17allstop using "directive" terminology for module replacescmd/cuetest that mod publish rejects an invalid module pathmod/modfilerename the local-module.cue replace field to replaceWithmod/modzipreject a downloaded module containing local-module.cue
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_fb46948feb7b1047e3e301ad30fad84d483f6699bf0b7f2a5e43f762440f72b3 |
| macOS, Apple silicon | cue_407cc19371dddb1694d496ccba1985b495a1d6b309fdb894e39495b0e37cab0e |
| Linux, x86-64 | cue_89a0e2a55a25d05ab02cd664edc050117a2be399a33a9ab8123944e3ad348942 |
| Linux, Arm64 | cue_7d3199c9377d934b0186e53a02cabe503c1c306d3a0d58d4be6919bd78124353 |
| Windows, x86-64 | cue_52285f6d4a5d401e4e0fe900fa7107f84f575ab25ff3e350368075abf41be64d |
| Windows, Arm64 | cue_03630b85a3fb1bbbb7bb0e4e275b9a275b6cebbba4861b25a661bd5b8570f52e |