v0.8.0-alpha.3

cue-lang/cue Pre-release Released

A release of CUE OSS · its page on GitHub

This release includes a number of fixes and improvements for the experimental support for CUE modules first released in v0.8.0-alpha.1.

Note that we skipped over v0.8.0-alpha.2 due to a minor release automation issue.

Modules

CUE_REGISTRY now supports a CUE configuration file in addition to the simple string form, which allows greater control over how to publish CUE modules as artifacts on OCI registries. This is useful when publishing to OCI registries which do not support arbitrary repository names, for example. This is not fully documented yet, but the schema for the file is available here and setting CUE_REGISTRY=file:path/to/file enables its use.

All cue subcommands should now support the modules experiment when it is enabled via CUE_EXPERIMENT=modules.

cue mod init now adds the language.version field as needed, to ensure that running cue mod tidy immediately after results in no changes.

CUE_MODCACHE has been replaced with CUE_CACHE_DIR, a parent directory to hold all cache files, much like how CUE_CONFIG_DIR already works for configuration files.

cue mod registry, a hidden command to start a local in-memory OCI registry for testing purposes, now treats repository tags as immutable to ensure published module versions cannot be modified. The “Working with a custom module registry” tutorial has been updated to use cue mod registry.

CUE Language Server Protocol Implementation

This release includes the first version of an experimental Language Server Protocol (LSP) implementation for CUE. Whilst it remains experimental, the cmd/cuepls binary is separate from cmd/cue. However at a later date it will most likely to become a subcommand of cmd/cue like cue lsp serve.

We are working on updating the VSCode plugin to use cmd/cuepls, as well as supporting an initial version of a plugin for Neovim. For JetBrains users, we are working with the author of the CUE plugin to understand how best to integrate cmd/cuepls with JetBrains.

Subscribe to the LSP announce discussion, or join us in #cuepls on CUE Slack.

All changes

32 changes since v0.8.0-alpha.1by area

all3

  • allreplace uses of deprecated ioutil APIs@mvdand6ecc3d
  • allreplace mpvl/unique with slices.Compact@mvdan057c324
  • allstart taking advantage of Go 1.21+@mvdan40d5162

cmd9

  • cmd/cueimprove error message when modules experiment not enabled@rogpepped1f1793
  • cmd/cueclarify prefix matching semantics@rogpeppe7a9e47c
  • cmd/cueadd language version in "mod init"@rogpeppeeb5dc6a
  • cmd/cueuse CUE_CACHE_DIR instead of CUE_MODCACHE@mvdan8bc8b1e
  • cmd/cuesupport registry file configuration@rogpeppec1e1a52
  • cmd/cueupdate mod docs@rogpeppefa30d88
  • cmd/cueuse single implementation of CUE_REGISTRY logic@rogpeppe59b92a4
  • cmd/cuefix other commands to work with modules@rogpeppe3d9e272
  • cmd/cueuse immutable tags in cue mod registry@rogpeppee0c253b

cuepls12

  • cueplssupport formatting of CUE files@myitcvd185263
  • cueplssupport .cue filetype@myitcv55f965d
  • cueplsremove more server implementation@myitcv1ae88a6
  • cueplsfirst integration test@myitcv181a537
  • cueplsrenaming gopls -> cuepls@myitcv0b6bc2f
  • cueplsinitial version of cmd/cuepls@myitcv6a435cf
  • cueplsslim down to single format command@myitcv3e7e903
  • cueplsremove any mention of vulnerability analysis@myitcv821973b
  • cueplsminimal changes to telemetry@myitcvae69f66
  • cueplsremove gopls hooks@myitcv09f11f9
  • cueplsrun internal/golangorgx/revendorToolsInternal.sh@myitcv6229d62
  • cueplsinitial version of "vendor" script@myitcvc207a2d

internal3

  • internal/mod/modresolveuse same registry representation as CUE_REGISTRY@rogpeppecbf84aa
  • internal/mod/modresolveadd config file functionality@rogpeppebe5d706
  • internal/ciadd cuepls to goreleaser config@myitcvc36b959

Other5

  • bump ociregistry dependency@rogpeppe44fbc2a
  • hide testdata cue files to allow cue mod tidy to pass@mvdanbd96660
  • cue.modadd language.version to the root module@mvdanac53f42
  • bump golang.org/x dependencies for v0.8@mvdan88431ee
  • doc/tutorialfix broken install.md link@TheCoreMan6691137

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.8.0-alpha.3_darwin_amd64.tar.gz6897b58a767f8f76d9ab756c24fd8588ad3281c3df6bbc544e602d9cc6c6a7b5
macOS, Apple siliconcue_v0.8.0-alpha.3_darwin_arm64.tar.gzf21952c30761a810d03a010d6b2c38e42ae10b70d135026a75f03d9bd0400c3b
Linux, x86-64cue_v0.8.0-alpha.3_linux_amd64.tar.gz6b4d01a1dacf31fa4830a6deccd74cfe7c319a023b077b4561385390b1fa186f
Linux, Arm64cue_v0.8.0-alpha.3_linux_arm64.tar.gz549c12e0b4fb3e21cd7318a37b3a4d6cfe222392814261d88c1ea2a8889daa03
Windows, x86-64cue_v0.8.0-alpha.3_windows_amd64.zip570caf2980c75a14573385b68ce00da7e7fb3056e4e4d56b605462ed0ccca466
Windows, Arm64cue_v0.8.0-alpha.3_windows_arm64.zipad6a0511e6ef293dd763c621225d52b23a455fd170f817e7151a98cbed45ee4a

SHA-256 checksums for all of these: checksums.txt

Install CUE