v0.4.3
This release includes various bug fixes, including fixing some crashes. It also fixes a memory leak that would cause long-running servers to OOM (see #1418). It also now supports Go 1.18.
It also fixes various builtin extensions.
This release also makes a lot of preparations for the upcoming comprehension rework, which will allow us to do all kinds improvements and performance enhancements.
As a reminder: users can register their projects with unity, our regression and performance testing setup. unity is used to ensure that a project’s CUE evaluations do not unexpectedly stop working, or regress in terms of performance. unity continues to catch multiple issues with each release. Adding your project to unity not only guarantees that we will not break your tests (if we do, we will work with you to fix your CUE code), but it also helps to improve the quality of each CUE release. We are in the process of adding support for adding private projects to unity.
Thank you to @benmoss, @cuichenli, @danbison, @emcfarlane, @eonpatapon, @jared-gs, @jdreaver, @jlongtine, @mattmoor, @mvdan, @oncilla, @roidelapluie, @slewiskelly, @xinau, and @yannk for contributing to this release!
Language changes
This release removes all remaining support for quoted identifiers. Although this hasn’t been supported for a while, there were still parts of the code that handled them, resulting in cryptic error messages.
Core evaluator
This release sees an overall improvement in error location reporting. These changes are quite substantial but largely, aside from a few resulting bug fixes, do not alter behavior.
Builtins
net
Add CIDR range verification function.
regexp
Add ReplaceAll and ReplaceAllLiteral
time
Fixes a hermeticity issues where a local time zone may be selected. Added FormatString to ultimately replace Format, where Format will first have to be deprecated.
Add FormatString, FormatDuration and Split
tool/file
Add MkdirTemp, RemoveAll
tool/http
Add Support for TLS settings.
Docker images
docker pull docker.io/cuelang/cue:0.4.3
All changes
81 changesby area
all7
allapply Go 1.18's gofmt -sallbump x/textalldrop golang.org/x/xerrorsallformat .cue files in txtar archivesallmove to go1.17-based go.modallupgrade github.com/spf13/cobra to v1.4.0allupgrade go-internals
ci3
ciadd Go 1.18 and bump action and Go versionscioptimize CI build runtimesciupdate to the latest goreleaser version
cmd6
cmd/cue/cmdmake get go work with go 1.18cmd/cue/cmdsupport byte in get gocmd/cue/cmdsupport uintptr in get gocmd/cuemake long tests pass with Go 1.18cmd/cuethread cue.Context throughout callscmd/importfix typo in doc
cue9
cue/loadremove some unused codecue/tools/flowallow tasks in hidden fieldscueallow incomplete errors in Fields methodcuefix doc string for CompileBytes and referencescuefix IsClosedcuefix TextUnmarshal bug in Decodecuefix nil pointer deref in BuildInstancescueremove all support for quoted identifierscuetry harder to find a position for Pos
doc7
doc/ref/spec.mdfix hello world example in specdoc/specspecify default constraint is not implementeddocdelete whitespace in README to test master builddocfix "click" typodocfix up k8s tutorialdocmention the commit message hook for --signoffdocremove duplicate GerritHub clone instructions
internal26
internal/cmd/qgomake go 1.18 compatibilityinternal/core/adtadd nested logging supportinternal/core/adtadjust error positionsinternal/core/adtchange to incomplete errorinternal/core/adtdebug options for sorting arcsinternal/core/adtdon't yield struct on comprehensioninternal/core/adtfix closedness for API disjunctionsinternal/core/adtget rid of NotExistErrorinternal/core/adthoist code to prep for comprehension changeinternal/core/adtintroduce Comprehension typeinternal/core/adtmake comprehension value an Exprinternal/core/adtmerge if and for comprehension listsinternal/core/adtpass Conjunct to addVertexConjunctsinternal/core/adtperformance: improve lists disambiguationinternal/core/adtprepare for field conflict messageinternal/core/adtprevent state erasureinternal/core/adtprevent state inversioninternal/core/adtreintroduce Conjunct.Exprinternal/core/adtreport error for integer fieldsinternal/core/adtstore Ellipsis instead of Expr in Additionalinternal/core/adttrack positions for incomplete typesinternal/core/adtuse partial lookupinternal/core/depprevent crashinternal/core/runtimedon't share import cacheinternal/coreautomated renameinternal/cuetxarprovide CUE_FORMAT_TXTAR to format .cue files
pkg15
pkg/crypto/ed25519format generated test casepkg/netadd CIDR range verification functionpkg/regexpadd ReplaceAll and ReplaceAllLiteralpkg/regexpbring docs more inline with Go equivalentspkg/regexpdelete duplicate test case in txtarpkg/regexpreorder for ease of maintenancepkg/timeadd FormatDurationpkg/timeadd FormatString and Splitpkg/timefix hermeticity issuepkg/timeuse time.UTC for ParseInLocationpkg/tool/cliFix Ask taskpkg/tool/fileadd MkdirTemp, RemoveAllpkg/tool/httpadd tls settingspkg/tool/httpcheck tls.verify existspkgremove usage of qgo in go generate
tools4
tools/flowadd Value() to retrieve controller valuetools/flowfix test racetools/trimappropriately label vertextools/trimdon't remove structs with comprehensions
Other4
buildfix typo inclduded -> includedcrypto/ed25519support signature verificationinteral/core/adtimprove error locations- **Full Changelog**: https://github.com/cue-lang/cue/compare/v0.4.2...v0.4.3
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_1161254cf38b928b87a7ac1552dc2e12e6c5da298f9ce370d80e5518ddb6513d |
| macOS, Apple silicon | cue_3d84b85a7288f94301a4726dcf95b2d92c8ff796c4d45c4733fbdcc04ceaf21d |
| Linux, x86-64 | cue_5e7ecb614b5926acfc36eb1258800391ab7c6e6e026fa7cacbfe92006bac895c |
| Linux, Arm64 | cue_a8c3f4140d18c324cc69f5de4df0566e529e1636cff340095a42475799bf3fed |
| Windows, x86-64 | cue_67f76e36809565c1396cea1b44978d98807d980d55a7ddc3979396d34fac1037 |
| Windows, Arm64 | cue_a87573f32213a72d763dd624a1b63414e3d862ae4cef0b2698652aef380ebe60 |
SHA-256 checksums for all of these: checksums.txt