v0.14.0-alpha.2
This release brings many evaluator performance improvements, as well as initial support for Kubernetes CRDs.
Evaluator
Further performance improvements were made to the new closedness implementation, giving speed-ups of up to 50% for some projects with heavy use of definitions.
Significant progress has been made to the new evaluator’s memory usage; a few large projects experiencing high memory usage on the previous alpha release now see reductions of up to 80%.
Various other optimizations and performance bug fixes have been made to the new evaluator, yielding speed-ups of 5-20% on a variety of CUE projects.
Encodings
cue get crd introduces support for extracting Kubernetes Custom Resource Definitions (CRDs) as CUE definitions; see cue help get crd.
The new encoding/jsonschema.ExtractCRDs Go API exposes the extractor used by cue get crd.
All changes
52 changes since v0.14.0-alpha.1by area
cue3
cue/loaddeduplicate handling missing files for ad-hoc packagescue/loadreject unsupported cue.mod files by inspecting open errorscue/astEnsure ImportPath.Canonical copes with host-only paths
internal40
internal/core/adtfilter notificationsinternal/core/adtkeep track of notification countsinternal/core/adtrun evaluator tests in parallelinternal/pkgfix a race when contexts concurrently load std importsinternal/core/adtclean up orphaned arcsinternal/core/adtmark inlined nodes for cleanupinternal/core/adtprune parent processinginternal/core/adttrigger more diffs in statsinternal/core/adtclean up use of Vertex.stateinternal/core/adtbasic memory management for evalv3internal/core/adtcheck for nil state in parent disjunctioninternal/core/adtdelay processing of pattern constraintsinternal/core/adthandle equal disjunctsinternal/core/adtdo not set error for nil task stateinternal/core/adtreuse more letsinternal/core/adtallow unprocessedinternal/core/adtremove filter for let sharinginternal/core/adtrearrange newNodeContextinternal/core/adtmark nodeContext.clone as v2internal/core/adtadd benchmark for Issue 3334internal/core/adtmore eagerly update stats in testsinternal/ciskip "check git tags" when testing CLsinternal/ciuse shorter Namespace runner profile aliasesinternal/cirun tests with GOARCH=386 on protected branches onlyinternal/robustioadd stub js/wasm getFileID implementationinternal/core/adtnormalize how the tests configure the runtimeinternal/cuetxtardo not load the root cuelang.org/go CUE moduleinternal/robustioCopy from upstream and consolidate useinternal/core/adtremove unused test codeinternal/modpkgloadMake Package keep its set of filesinternal/coreremove a few unnecessary trailing Fprintln calls in testsinternal/lsp/fscacheCreate CUECacheFS and OverlayFSinternal/cidrop "evict caches" nightly cron jobinternal/cicache staticcheck via nscloud-cache-actioninternal/ciassume the CI machines are reasonably moderninternal/ciskip the test cache via GOFLAGS=-count=1internal/ciswitch to Namespace GitHub Actions runnersinternal/core/adtdelay stringifying nodes in errors via fmt.Stringerinternal/core/adtensure emptyNode is inertinternal/core/adtuse custom int set implementation for visited
mod4
mod/modfiledatarename File.ModulePath() to File.ModuleRootPath()mod/modpkgloadcorrect calculation of pkg.fromExternalmod/modpkgloadcapture faulty behaviour of pkg.fromExternalmod/modpkgloadMake LoadPackages support nil shouldIncludePkgFile
Other5
tools/trimhandle error cases in APIencoding/jsonschemaparallelize vendor_external.go a bitcmd/cueimplement cue get crdencoding/jsonschemaimplement ExtractCRDscmd/cueskip tests using sleeps in short mode
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_0a23ba2dcce44c649325a8443ddb245473afe694b4b5b3c89b7660cffca8f92d |
| macOS, Apple silicon | cue_29c24a9bab97905acc31492869c1512af771146c6d4c8a0441435c19eb88a04c |
| Linux, x86-64 | cue_909b1017b816979c445880fbf8a2c0f2af6707296c61486f138e449da85443e5 |
| Linux, Arm64 | cue_f2550e7ed47a01b5552f7ce46a63ac5035a405323ed6358307c5d0131deacb2b |
| Windows, x86-64 | cue_d2952cb87a599b088fd8cfa04046a2a118b87526aa0929bf72734e5780eac711 |
| Windows, Arm64 | cue_2b4e3a2a53c4fae13c94f69aca9113d84b9c30127e4a0d29d8c04b7c7d6159ee |
SHA-256 checksums for all of these: checksums.txt