diff --git a/cmd/cue/cmd/testdata/script/modfix_initial.txtar b/cmd/cue/cmd/testdata/script/modfix_initial.txtar index bac70a29120..95612c0aa60 100644 --- a/cmd/cue/cmd/testdata/script/modfix_initial.txtar +++ b/cmd/cue/cmd/testdata/script/modfix_initial.txtar @@ -14,7 +14,7 @@ foo: "bar" -- want-module -- module: "foo.com" language: { - version: "v0.9.0" + version: "v0.9.2" } custom: { legacy: { diff --git a/cmd/cue/cmd/testdata/script/module_compatibility_backwards.txtar b/cmd/cue/cmd/testdata/script/module_compatibility_backwards.txtar index 34153574d1c..580fdedee66 100644 --- a/cmd/cue/cmd/testdata/script/module_compatibility_backwards.txtar +++ b/cmd/cue/cmd/testdata/script/module_compatibility_backwards.txtar @@ -99,7 +99,7 @@ module: "premodules.example" -- premodules-module.cue.fixed -- module: "premodules.example" language: { - version: "v0.9.0" + version: "v0.9.2" } -- premodules/cue.mod/pkg/premodules.example/root.cue -- package root diff --git a/cmd/cue/cmd/testdata/script/module_compatibility_forwards.txtar b/cmd/cue/cmd/testdata/script/module_compatibility_forwards.txtar index a2e9eeda7d5..97e836da745 100644 --- a/cmd/cue/cmd/testdata/script/module_compatibility_forwards.txtar +++ b/cmd/cue/cmd/testdata/script/module_compatibility_forwards.txtar @@ -36,7 +36,7 @@ cmp stderr ${WORK}/v0.99.0-toonew.stderr cmp stderr ${WORK}/v0.99.0-toonew.stderr -- v0.99.0-toonew.stderr -- -language version "v0.99.0" declared in module.cue is too new for current language version "v0.9.0" +language version "v0.99.0" declared in module.cue is too new for current language version "v0.9.2" -- 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 b74811e3bea..4e9541275e9 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.9.0" + return "v0.9.2" } // ModuleVersion returns the version of the cuelang.org/go module as best as can diff --git a/mod/modfile/modfile_test.go b/mod/modfile/modfile_test.go index f1297aa4fab..bfbca2151bf 100644 --- a/mod/modfile/modfile_test.go +++ b/mod/modfile/modfile_test.go @@ -87,12 +87,12 @@ deps: "other.com/something@v0": v: "v0.2.3" parse: Parse, data: ` module: "foo.com/bar@v0" -language: version: "v0.9.0-alpha.0" +language: version: "v0.9.2-alpha.0" source: kind: "git" `, want: &File{ Language: &Language{ - Version: "v0.9.0-alpha.0", + Version: "v0.9.2-alpha.0", }, Module: "foo.com/bar@v0", Source: &Source{ @@ -107,12 +107,12 @@ source: kind: "git" parse: Parse, data: ` module: "foo.com/bar@v0" -language: version: "v0.9.0-alpha.0" +language: version: "v0.9.2-alpha.0" source: kind: "self" `, want: &File{ Language: &Language{ - Version: "v0.9.0-alpha.0", + Version: "v0.9.2-alpha.0", }, Module: "foo.com/bar@v0", Source: &Source{ @@ -127,7 +127,7 @@ source: kind: "self" parse: Parse, data: ` module: "foo.com/bar@v0" -language: version: "v0.9.0-alpha.0" +language: version: "v0.9.2-alpha.0" source: kind: "bad" `, wantError: `source.kind: 2 errors in empty disjunction:(.|\n)+`, @@ -305,7 +305,7 @@ _foo: "blah.example" parse: Parse, data: ` module: "foo.com/bar" -_foo: "v0.9.0" +_foo: "v0.9.2" language: version: _foo `, wantError: `invalid module.cue file syntax: references not allowed in data mode: @@ -315,7 +315,7 @@ language: version: _foo parse: Parse, data: ` module: "foo.com/bar" -let foo = "v0.9.0" +let foo = "v0.9.2" language: version: foo `, wantError: `invalid module.cue file syntax: references not allowed in data mode: @@ -327,8 +327,8 @@ invalid module.cue file syntax: references not allowed in data mode: parse: Parse, data: ` module: "foo.com/bar" -#x: "v0.9.0" -language: version: "v0.9.0" +#x: "v0.9.2" +language: version: "v0.9.2" `, wantError: `invalid module.cue file syntax: definitions not allowed in data mode: module.cue:3:1`, @@ -337,12 +337,12 @@ language: version: "v0.9.0" parse: Parse, data: ` module: "foo.com/bar@v0" -language: version: "v0.9.0" +language: version: "v0.9.2" custom: "somewhere.com": foo: true `, want: &File{ Module: "foo.com/bar@v0", - Language: &Language{Version: "v0.9.0"}, + Language: &Language{Version: "v0.9.2"}, Custom: map[string]map[string]any{ "somewhere.com": { "foo": true, @@ -360,7 +360,7 @@ module: "foo.com/bar" `, want: &File{ Module: "foo.com/bar", - Language: &Language{Version: "v0.9.0"}, + Language: &Language{Version: "v0.9.2"}, }, wantDefaults: map[string]string{ "foo.com/bar": "v0", @@ -372,7 +372,7 @@ module: "foo.com/bar" `, want: &File{ Module: "test.example", - Language: &Language{Version: "v0.9.0"}, + Language: &Language{Version: "v0.9.2"}, }, wantDefaults: map[string]string{ "test.example": "v0", @@ -385,7 +385,7 @@ module: "" `, want: &File{ Module: "test.example", - Language: &Language{Version: "v0.9.0"}, + Language: &Language{Version: "v0.9.2"}, }, wantDefaults: map[string]string{ "test.example": "v0", @@ -400,7 +400,7 @@ other: field: 123 `, want: &File{ Module: "foo.com", - Language: &Language{Version: "v0.9.0"}, + Language: &Language{Version: "v0.9.2"}, Custom: map[string]map[string]any{ "legacy": { "some": true,