v0.8.0-alpha.3
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 APIsallreplace mpvl/unique with slices.Compactallstart taking advantage of Go 1.21+
cmd9
cmd/cueimprove error message when modules experiment not enabledcmd/cueclarify prefix matching semanticscmd/cueadd language version in "mod init"cmd/cueuse CUE_CACHE_DIR instead of CUE_MODCACHEcmd/cuesupport registry file configurationcmd/cueupdate mod docscmd/cueuse single implementation of CUE_REGISTRY logiccmd/cuefix other commands to work with modulescmd/cueuse immutable tags in cue mod registry
cuepls12
cueplssupport formatting of CUE filescueplssupport .cue filetypecueplsremove more server implementationcueplsfirst integration testcueplsrenaming gopls -> cueplscueplsinitial version of cmd/cueplscueplsslim down to single format commandcueplsremove any mention of vulnerability analysiscueplsminimal changes to telemetrycueplsremove gopls hookscueplsrun internal/golangorgx/revendorToolsInternal.shcueplsinitial version of "vendor" script
internal3
internal/mod/modresolveuse same registry representation as CUE_REGISTRYinternal/mod/modresolveadd config file functionalityinternal/ciadd cuepls to goreleaser config
Other5
- bump ociregistry dependency
- hide testdata cue files to allow
cue mod tidyto pass cue.modadd language.version to the root module- bump golang.org/x dependencies for v0.8
doc/tutorialfix broken install.md link
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_6897b58a767f8f76d9ab756c24fd8588ad3281c3df6bbc544e602d9cc6c6a7b5 |
| macOS, Apple silicon | cue_f21952c30761a810d03a010d6b2c38e42ae10b70d135026a75f03d9bd0400c3b |
| Linux, x86-64 | cue_6b4d01a1dacf31fa4830a6deccd74cfe7c319a023b077b4561385390b1fa186f |
| Linux, Arm64 | cue_549c12e0b4fb3e21cd7318a37b3a4d6cfe222392814261d88c1ea2a8889daa03 |
| Windows, x86-64 | cue_570caf2980c75a14573385b68ce00da7e7fb3056e4e4d56b605462ed0ccca466 |
| Windows, Arm64 | cue_ad6a0511e6ef293dd763c621225d52b23a455fd170f817e7151a98cbed45ee4a |
SHA-256 checksums for all of these: checksums.txt