v0.15.1
Evaluator
Fix an evalv3 regression first introduced in v0.11.0 where the and built-in function started evaluating its arguments too eagerly, causing failures in cue def.
Fix an evalv3 regression where closedness info could be lost when using a comprehension.
Fix a bug where the evaluator would panic on alias cycles with dynamic fields rather than giving a good error.
LSP
Formatting standalone CUE files - either without a package name, or outside of a CUE module - now works correctly.
Fix a bug where trying to use “find references” on a CUE module with nested modules would cause a hang.
Fix a bug where resolving path roots did not work correctly in the presence of struct embeddings.
cmd/cue
Fix a regression in v0.15.0 where cue get go no longer skipped generating CUE files without any declarations.
Go API
Fix a bug in the subsume package where a struct with a pattern constraint did not subsume a closed struct with a matching field.
Rename the bootstrap build tag used in the internal/filetypes package to cuebootstrap to avoid conflicts with build tags in other Go modules.
All changes
16 changes since v0.15.0by area
internal7
internal/lspformat standalone files without phantom pkg namesinternal/core/compiledon't panic on an alias cycle with a dynamic fieldinternal/core/compilerevertandto use Func instead of RawFuncinternal/core/subsumefix duplicate logic for pattern constraintsinternal/core/subsumeadd test cases for pattern constraintsinternal/filetypesuse a less generic bootstrap build taginternal/core/adtcheck removed scope per conjunct
lsp4
lsp/fscacheimprove removal of phantom package declslsp/definitionscorrect resolution of path rootslsp/definitionsadd test to show faulty resolutionlsp/cachestop nested modules from breaking find-references
Other5
- bump pinnedReleaseGo and LanguageVersion for v0.15.1
cue/testdataadd test case for #3719cmd/cuedo not emit empty CUE files inget goagaincmd/cuetest that we don't emit empty CUE files without --outfilecue/testdataadd a test case for #4180
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_e761c85f060283d7c52b0b80e3ae57b569a0c4e7f7029bdbf38d7f079b2128bc |
| macOS, Apple silicon | cue_9ee183ec8686675a0aea24f9f5cfb64235ee4e7583e8e771432a0bf58e64411a |
| Linux, x86-64 | cue_aa282261245e9ab0d65b17ec3c7207f5231600106f7b26fc0c2e158b3937ca3f |
| Linux, Arm64 | cue_6bb80ec3262c7cedf898a21e9e9481c86da54488f144788b1fa0a5dc01879a0b |
| Windows, x86-64 | cue_516fa080c1af12578ff76a4165cc7bf14ad9bbe5d9724a0c07553860d038885e |
| Windows, Arm64 | cue_bf789490a4c9b1fe2aec8b1b078fb5cdd428c4653fae1a0572cb75c1ade50ca7 |