Skip to content

Commit

Permalink
internal/cueversion: bump LanguageVersion for v0.10
Browse files Browse the repository at this point in the history
Work in master has begun for v0.10, so bump the language version
following the instructions at:
https://github.com/cue-lang/cue/wiki/Notes-for-project-maintainers#doing-a-release

Signed-off-by: Daniel Martí <mvdan@mvdan.cc>
Change-Id: I336cd44de6291dafa5e96ee9c4f214c3f5f192f0
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1196303
Reviewed-by: Roger Peppe <rogpeppe@gmail.com>
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>
  • Loading branch information
mvdan committed Jun 14, 2024
1 parent cc7cb90 commit 525e18b
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion cmd/cue/cmd/testdata/script/modfix_initial.txtar
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ foo: "bar"
-- want-module --
module: "foo.com"
language: {
version: "v0.9.0"
version: "v0.10.0"
}
custom: {
legacy: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ module: "premodules.example"
-- premodules-module.cue.fixed --
module: "premodules.example"
language: {
version: "v0.9.0"
version: "v0.10.0"
}
-- premodules/cue.mod/pkg/premodules.example/root.cue --
package root
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.10.0"
-- v0.99.0/cue.mod/module.cue --
module: "downstream.example"
language: version: "v0.9.0"
Expand Down
2 changes: 1 addition & 1 deletion internal/cueversion/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.10.0"
}

// ModuleVersion returns the version of the cuelang.org/go module as best as can
Expand Down
8 changes: 4 additions & 4 deletions mod/modfile/modfile_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ module: "foo.com/bar"
`,
want: &File{
Module: "foo.com/bar",
Language: &Language{Version: "v0.9.0"},
Language: &Language{Version: "v0.10.0"},
},
wantDefaults: map[string]string{
"foo.com/bar": "v0",
Expand All @@ -372,7 +372,7 @@ module: "foo.com/bar"
`,
want: &File{
Module: "test.example",
Language: &Language{Version: "v0.9.0"},
Language: &Language{Version: "v0.10.0"},
},
wantDefaults: map[string]string{
"test.example": "v0",
Expand All @@ -385,7 +385,7 @@ module: ""
`,
want: &File{
Module: "test.example",
Language: &Language{Version: "v0.9.0"},
Language: &Language{Version: "v0.10.0"},
},
wantDefaults: map[string]string{
"test.example": "v0",
Expand All @@ -400,7 +400,7 @@ other: field: 123
`,
want: &File{
Module: "foo.com",
Language: &Language{Version: "v0.9.0"},
Language: &Language{Version: "v0.10.0"},
Custom: map[string]map[string]any{
"legacy": {
"some": true,
Expand Down

0 comments on commit 525e18b

Please sign in to comment.