Skip to content

v0.8.0-rc.1

Pre-release
Pre-release
Compare
Choose a tag to compare
@cueckoo cueckoo released this 13 Mar 10:18
· 1005 commits to master since this release

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

Modules

cue mod tidy gained a --check flag, which succeeds only if the module file contains exactly the required dependencies and also contains a canonical CUE language version.

cmd/cue and cue/load now send a detailed HTTP User-Agent string to CUE registries when sending HTTP requests, including the CUE and Go versions, rather than Go's default net/http user agent string.

cmd/cue now supports CUE_DEBUG=http to print HTTP logging information to stderr in JSON format.

Local builds of cmd/cue, such as running go install ./cmd/cue, now include a proper CUE version, allowing cue mod init and cue mod tidy to insert language.version as expected.

Full list of changes since v0.8.0-alpha.5
  • internal/cueversion: bump fallbackVersion for v0.8.0-rc.1 by @mvdan in ccb64b1
  • doc/tutorial: skip module.cue as a golden file to avoid churn by @mvdan in d97e914
  • cmd/cue: use CUE_VERSION_OVERRIDE in script tests to avoid churn by @mvdan in e529ce6
  • cmd/cue: fix "login" on a clean environment, and add tests by @mvdan in f6238e5
  • internal/cueversion: convert spaces to underscore in Go version by @rogpeppe in 0b7c434
  • cmd/cue,mod/modconfig: send User-Agent header by @rogpeppe in 6db0b7f
  • internal/cueversion: new package by @rogpeppe in 5dbbbcb
  • cmd/cue: enable HTTP logging for cue login by @rogpeppe in 9f556fe
  • cmd/cue: implement cue mod tidy --check by @rogpeppe in 9789ee6
  • internal/modload: implement tidiness checker by @rogpeppe in 405511d
  • mod/modfile: check canonical language version by @rogpeppe in 2e503e0
  • internal/mod/modload: split Tidy from UpdateVersions by @rogpeppe in 0a23647
  • bump ociregistry dependency to pull in a panic fix by @mvdan in 382ea51
  • cmd/cue: implement support for HTTP logging by @rogpeppe in 9c8b09a
  • internal/httplog: new package by @rogpeppe in 893798b
  • Revert "internal/e2e: partially revert using cue mod init modpath@version" by @mvdan in b1e40ae
  • cmd/cue: use fallbackVersion when built via a directory replace by @mvdan in e54fb85
  • cmd/cue: hard-code a fallback CUE semver version by @mvdan in fc7038a
  • update golang.org/x/... dependencies for v0.8.0 by @mvdan in 6afa3ef
  • internal/ci: update the pinned Go version for v0.8 by @mvdan in a1e8429
  • internal/cuedebug: new package by @rogpeppe in 6ad495d
  • cue/load: fix race in testing by @rogpeppe in ee26ee2
  • mod/modconfig: make http transport configurable by @rogpeppe in 0ef11fc
  • internal/core/adt: set nonRooted by @mpvl in 28ae97d
  • internal/core/debug: more state in formation by @mpvl in 2273c7d
  • internal/core/adt: make runner a struct instead of func by @mpvl in 0651453
  • internal/core/adt: fix conjunct index by @mpvl in 2554094
  • internal/core/adt: implement new evaluator by @mpvl in 5f55954
  • internal/core/adt: only error if inspected node missed counters by @mpvl in c547590
  • internal/core/adt: closedness improvements by @mpvl in b7f76be
  • internal/core/adt: add lifetime check for closedness by @mpvl in cdcb6fa
  • internal/core/adt: mark functions only used in old evaluator by @mpvl in f55405b
  • internal/core/adt: exclude tests with disjunctions by @mpvl in 145b436
  • internal/core/adt: propagate closedness up by @mpvl in 9d951f6
  • internal/core/adt: introduce visual CUE debugger by @mpvl in 37c0260