From 05ef577540e48755105c6a20a74e490b60717a54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Mart=C3=AD?= Date: Tue, 22 Oct 2024 14:14:23 +0100 Subject: [PATCH] internal/cueversion: update LanguageVersion for v0.10.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Daniel Martí Change-Id: Id0399520f5b7debdfaefaf5707f4d06a683faeb4 Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1202888 Reviewed-by: Roger Peppe TryBot-Result: CUEcueckoo --- cmd/cue/cmd/testdata/script/modedit_nomajorversion.txtar | 4 ++-- .../cmd/testdata/script/modinit_with_explicit_version.txtar | 2 +- .../cmd/testdata/script/module_compatibility_forwards.txtar | 4 ++-- internal/cueversion/version.go | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/cmd/cue/cmd/testdata/script/modedit_nomajorversion.txtar b/cmd/cue/cmd/testdata/script/modedit_nomajorversion.txtar index 87754022619..b954255d96b 100644 --- a/cmd/cue/cmd/testdata/script/modedit_nomajorversion.txtar +++ b/cmd/cue/cmd/testdata/script/modedit_nomajorversion.txtar @@ -10,10 +10,10 @@ cmp cue.mod/module.cue want-module-2 -- want-module -- module: "test.example" language: { - version: "v0.10.0" + version: "v0.10.1" } -- want-module-2 -- module: "other.example" language: { - version: "v0.10.0" + version: "v0.10.1" } diff --git a/cmd/cue/cmd/testdata/script/modinit_with_explicit_version.txtar b/cmd/cue/cmd/testdata/script/modinit_with_explicit_version.txtar index 30851beae6a..748aa7e93da 100644 --- a/cmd/cue/cmd/testdata/script/modinit_with_explicit_version.txtar +++ b/cmd/cue/cmd/testdata/script/modinit_with_explicit_version.txtar @@ -38,6 +38,6 @@ language: { -- want-stderr-3 -- language version "v0.4.3" is too early for module.cue schema (earliest allowed is v0.8.0-alpha.0) -- want-stderr-4 -- -language version "v2.3.4" may not be after current language version v0.10.0 +language version "v2.3.4" may not be after current language version v0.10.1 -- want-stderr-5 -- cannot parse result: invalid module.cue file: source field is not allowed at this language version; need at least v0.9.0-alpha.0 diff --git a/cmd/cue/cmd/testdata/script/module_compatibility_forwards.txtar b/cmd/cue/cmd/testdata/script/module_compatibility_forwards.txtar index 8b8793c086c..2d86381bec0 100644 --- a/cmd/cue/cmd/testdata/script/module_compatibility_forwards.txtar +++ b/cmd/cue/cmd/testdata/script/module_compatibility_forwards.txtar @@ -68,7 +68,7 @@ cmp stderr ${WORK}/v0.99.0-toonew.stderr cmp stderr ${WORK}/v0.99.0-toonew.stderr -- bugfix-newer-toonew.stderr -- -language version "v0.10.99" declared in module.cue is too new for current language version "v0.10.0" +language version "v0.10.99" declared in module.cue is too new for current language version "v0.10.1" -- bugfix-newer/cue.mod/module.cue -- module: "downstream.example" language: version: "v0.9.0" @@ -88,7 +88,7 @@ package subpkg "hello from bugfix-newer.example" -- v0.99.0-toonew.stderr -- -language version "v0.99.0" declared in module.cue is too new for current language version "v0.10.0" +language version "v0.99.0" declared in module.cue is too new for current language version "v0.10.1" -- v0.99.0/cue.mod/module.cue -- module: "downstream.example" language: version: "v0.9.0" diff --git a/internal/cueversion/version.go b/internal/cueversion/version.go index 56b33e95df8..569384bf7cc 100644 --- a/internal/cueversion/version.go +++ b/internal/cueversion/version.go @@ -17,7 +17,7 @@ import ( // This determines the latest version of CUE that // is accepted by the module. func LanguageVersion() string { - return "v0.10.0" + return "v0.10.1" } // ModuleVersion returns the version of the cuelang.org/go module as best as can