v0.15.1

cue-lang/cue Released

A release of CUE OSS · its page on GitHub

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 names@cuematthewbf16055
  • internal/core/compiledon't panic on an alias cycle with a dynamic field@mvdancf6c597
  • internal/core/compilerevert and to use Func instead of RawFunc@mvdan37e8637
  • internal/core/subsumefix duplicate logic for pattern constraints@mvdana229275
  • internal/core/subsumeadd test cases for pattern constraints@mvdanbca0a55
  • internal/filetypesuse a less generic bootstrap build tag@mvdan94f2f0e
  • internal/core/adtcheck removed scope per conjunct@mvdan2e8e111

lsp4

  • lsp/fscacheimprove removal of phantom package decls@cuematthewbcc9a45
  • lsp/definitionscorrect resolution of path roots@cuematthewe64569f
  • lsp/definitionsadd test to show faulty resolution@cuematthewf2076ae
  • lsp/cachestop nested modules from breaking find-references@cuematthew6d75085

Other5

  • bump pinnedReleaseGo and LanguageVersion for v0.15.1@mvdan350755e
  • cue/testdataadd test case for #3719@mvdande5328e
  • cmd/cuedo not emit empty CUE files in get go again@mvdan819474c
  • cmd/cuetest that we don't emit empty CUE files without --outfile@mvdane61516d
  • cue/testdataadd a test case for #4180@mvdanf81118c

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.15.1_darwin_amd64.tar.gze761c85f060283d7c52b0b80e3ae57b569a0c4e7f7029bdbf38d7f079b2128bc
macOS, Apple siliconcue_v0.15.1_darwin_arm64.tar.gz9ee183ec8686675a0aea24f9f5cfb64235ee4e7583e8e771432a0bf58e64411a
Linux, x86-64cue_v0.15.1_linux_amd64.tar.gzaa282261245e9ab0d65b17ec3c7207f5231600106f7b26fc0c2e158b3937ca3f
Linux, Arm64cue_v0.15.1_linux_arm64.tar.gz6bb80ec3262c7cedf898a21e9e9481c86da54488f144788b1fa0a5dc01879a0b
Windows, x86-64cue_v0.15.1_windows_amd64.zip516fa080c1af12578ff76a4165cc7bf14ad9bbe5d9724a0c07553860d038885e
Windows, Arm64cue_v0.15.1_windows_arm64.zipbf789490a4c9b1fe2aec8b1b078fb5cdd428c4653fae1a0572cb75c1ade50ca7
Install CUE