Skip to content

Commit 690add3

Browse files
committed
all: add language.version to module.cue files
This prepares for the change that flips the default behavior to enable the modules experiment. For #3127 Signed-off-by: Roger Peppe <[email protected]> Change-Id: I8b1e3c516a1182ab3a38324a69e2e5c1edad041d Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1194684 TryBot-Result: CUEcueckoo <[email protected]> Unity-Result: CUE porcuepine <[email protected]> Reviewed-by: Daniel Martí <[email protected]>
1 parent e9bf33c commit 690add3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+100
-11
lines changed

cmd/cue/cmd/testdata/script/cmd_after.txtar

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,5 @@ command: after: {
4949
package home
5050

5151
-- cue.mod/module.cue --
52+
module: "test.example"
53+
language: version: "v0.9.0"

cmd/cue/cmd/testdata/script/cmd_concurrent.txtar

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,5 @@ command: runtwo: {
2929
}
3030
}
3131
-- cue.mod/module.cue --
32+
module: "test.example"
33+
language: version: "v0.9.0"

cmd/cue/cmd/testdata/script/cmd_dep.txtar

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,5 @@ command: do: {
3131
}
3232

3333
-- cue.mod/module.cue --
34+
module: "test.example"
35+
language: version: "v0.9.0"

cmd/cue/cmd/testdata/script/cmd_deppkg.txtar

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ cmp stdout cue_cmd_foo_both.golden
33

44
-- cue.mod/module.cue --
55
module: "mod.test/test"
6+
language: version: "v0.9.0"
67
-- sub/sub.cue --
78
package sub
89

cmd/cue/cmd/testdata/script/cmd_dir.txtar

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,5 @@ command: ls: {
2626
}
2727

2828
-- cue.mod/module.cue --
29+
module: "test.example"
30+
language: version: "v0.9.0"

cmd/cue/cmd/testdata/script/cmd_echo.txtar

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ stdout 'Hello World!'
66

77
-- cue.mod/module.cue --
88
module: "mod.test/foo"
9+
language: version: "v0.9.0"
910

1011
-- data.cue --
1112
package hello

cmd/cue/cmd/testdata/script/cmd_embed.txtar

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ stdout 'hello, world'
3434
}
3535
}
3636
-- cue.mod/module.cue --
37-
module: ""
37+
module: "test.example"
38+
language: version: "v0.9.0"
3839
-- cue.mod/pkg/mod.test/hello/cue.mod/module.cue --
3940
module: "mod.test/hello"
4041
-- cue.mod/pkg/mod.test/hello/hello.cue --

cmd/cue/cmd/testdata/script/cmd_execenv.txtar

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ cmp stdout stdout.golden
33

44
-- cue.mod/module.cue --
55
module: "example.com"
6+
language: version: "v0.9.0"
67

78
-- stdout.golden --
89
usesDefaultsStruct: hello from John Doe

cmd/cue/cmd/testdata/script/cmd_execerr.txtar

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ cmp stdout canFail-stdout.golden
66

77
-- cue.mod/module.cue --
88
module: "example.com"
9+
language: version: "v0.9.0"
910

1011
-- cannotFail-stderr.golden --
1112
task failed: command "false" failed: exit status 1

cmd/cue/cmd/testdata/script/cmd_filetypes.txtar

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ stderr 'cannot find package "\./somefile"'
6262

6363
-- cue.mod/module.cue --
6464
module: "mod.test/test"
65+
language: version: "v0.9.0"
6566
-- somefile.cue --
6667
a: 5
6768
-- somepkg/somefile.cue --

0 commit comments

Comments
 (0)