v0.4.3

cue-lang/cue Released

A release of CUE OSS · its page on GitHub

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 -s5c43a87
  • allbump x/text41ad3a0
  • alldrop golang.org/x/xerrorse74624b
  • allformat .cue files in txtar archivesb6cdc74
  • allmove to go1.17-based go.mod054cc31
  • allupgrade github.com/spf13/cobra to v1.4.0f396ea8
  • allupgrade go-internalsf26cc29

ci3

  • ciadd Go 1.18 and bump action and Go versionsdc2c9e0
  • cioptimize CI build runtimesf44242c
  • ciupdate to the latest goreleaser version256f1f9

cmd6

  • cmd/cue/cmdmake get go work with go 1.18935a926
  • cmd/cue/cmdsupport byte in get go37cc8ac
  • cmd/cue/cmdsupport uintptr in get go5127136
  • cmd/cuemake long tests pass with Go 1.1869e2dcc
  • cmd/cuethread cue.Context throughout callsaca00a0
  • cmd/importfix typo in doc583c11e

cue9

  • cue/loadremove some unused code6b138e4
  • cue/tools/flowallow tasks in hidden fields4136481
  • cueallow incomplete errors in Fields method699ce65
  • cuefix doc string for CompileBytes and references71b43a8
  • cuefix IsClosed84d3cad
  • cuefix TextUnmarshal bug in Decode24c9117
  • cuefix nil pointer deref in BuildInstancesb1edc14
  • cueremove all support for quoted identifiersa7eda13
  • cuetry harder to find a position for Pos49e295b

doc7

  • doc/ref/spec.mdfix hello world example in spec2eb7d1e
  • doc/specspecify default constraint is not implemented1c52d6a
  • docdelete whitespace in README to test master buildba164f5
  • docfix "click" typoa6995f5
  • docfix up k8s tutorialeaaf5f0
  • docmention the commit message hook for --signoff7627c93
  • docremove duplicate GerritHub clone instructions2020208

internal26

  • internal/cmd/qgomake go 1.18 compatibilityfa141c2
  • internal/core/adtadd nested logging support569fcbd
  • internal/core/adtadjust error positions09c1ee0
  • internal/core/adtchange to incomplete error0a4d48d
  • internal/core/adtdebug options for sorting arcsb995f5b
  • internal/core/adtdon't yield struct on comprehension448b94c
  • internal/core/adtfix closedness for API disjunctions1e45d06
  • internal/core/adtget rid of NotExistError6b37a01
  • internal/core/adthoist code to prep for comprehension changee70db24
  • internal/core/adtintroduce Comprehension type8f3c71b
  • internal/core/adtmake comprehension value an Exprf045a5a
  • internal/core/adtmerge if and for comprehension listsb2d9e16
  • internal/core/adtpass Conjunct to addVertexConjunctse499dae
  • internal/core/adtperformance: improve lists disambiguation28f8d47
  • internal/core/adtprepare for field conflict message49fdab8
  • internal/core/adtprevent state erasuree0577bb
  • internal/core/adtprevent state inversionbe2ee9b
  • internal/core/adtreintroduce Conjunct.Expr7cdcc70
  • internal/core/adtreport error for integer fields0e634cf
  • internal/core/adtstore Ellipsis instead of Expr in Additional975f57c
  • internal/core/adttrack positions for incomplete types2421553
  • internal/core/adtuse partial lookup8dee602
  • internal/core/depprevent crash19782a6
  • internal/core/runtimedon't share import cache195cdf7
  • internal/coreautomated renamec561f1f
  • internal/cuetxarprovide CUE_FORMAT_TXTAR to format .cue files28c1adb

pkg15

  • pkg/crypto/ed25519format generated test case4cbd2e6
  • pkg/netadd CIDR range verification function189de92
  • pkg/regexpadd ReplaceAll and ReplaceAllLiteral37eb22b
  • pkg/regexpbring docs more inline with Go equivalents53a108d
  • pkg/regexpdelete duplicate test case in txtarfe20132
  • pkg/regexpreorder for ease of maintenance08fa1c7
  • pkg/timeadd FormatDurationa15720b
  • pkg/timeadd FormatString and Split71e9d03
  • pkg/timefix hermeticity issue65ff0f4
  • pkg/timeuse time.UTC for ParseInLocatione32817a
  • pkg/tool/cliFix Ask task977d353
  • pkg/tool/fileadd MkdirTemp, RemoveAll8dee549
  • pkg/tool/httpadd tls settingsda75cdf
  • pkg/tool/httpcheck tls.verify existsffb044f
  • pkgremove usage of qgo in go generate05f74a8

tools4

  • tools/flowadd Value() to retrieve controller value04ac666
  • tools/flowfix test racea03817f
  • tools/trimappropriately label vertex1b4b7e9
  • tools/trimdon't remove structs with comprehensions8a2e832

Other4

  • buildfix typo inclduded -> included83a1700
  • crypto/ed25519support signature verification89d6078
  • interal/core/adtimprove error locationsb67dc4d
  • **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

PlatformFile and SHA-256
macOS, Intelcue_v0.4.3_darwin_amd64.tar.gz1161254cf38b928b87a7ac1552dc2e12e6c5da298f9ce370d80e5518ddb6513d
macOS, Apple siliconcue_v0.4.3_darwin_arm64.tar.gz3d84b85a7288f94301a4726dcf95b2d92c8ff796c4d45c4733fbdcc04ceaf21d
Linux, x86-64cue_v0.4.3_linux_amd64.tar.gz5e7ecb614b5926acfc36eb1258800391ab7c6e6e026fa7cacbfe92006bac895c
Linux, Arm64cue_v0.4.3_linux_arm64.tar.gza8c3f4140d18c324cc69f5de4df0566e529e1636cff340095a42475799bf3fed
Windows, x86-64cue_v0.4.3_windows_amd64.zip67f76e36809565c1396cea1b44978d98807d980d55a7ddc3979396d34fac1037
Windows, Arm64cue_v0.4.3_windows_arm64.zipa87573f32213a72d763dd624a1b63414e3d862ae4cef0b2698652aef380ebe60

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

Install CUE