diff --git a/cmd/cue/cmd/testdata/script/modedit_nonstrict.txtar b/cmd/cue/cmd/testdata/script/modedit_nonstrict.txtar new file mode 100644 index 00000000000..5edadca94cf --- /dev/null +++ b/cmd/cue/cmd/testdata/script/modedit_nonstrict.txtar @@ -0,0 +1,12 @@ +# This test checks that cue mod edit works OK even when the +# module file doesn't conform to the strict parsing. +# TODO fix this to pass. +! exec cue mod edit --source self +cmpenv stderr want-stderr + +-- cue.mod/module.cue -- +module: "main.org" +deps: "foo.com": v: "v1.2.3" +language: version: "v0.9.0-alpha.0" +-- want-stderr -- +invalid module.cue file $WORK${/}cue.mod${/}module.cue: no major version in "foo.com" diff --git a/cmd/cue/cmd/testdata/script/modtidy_initial.txtar b/cmd/cue/cmd/testdata/script/modtidy_initial.txtar index a351e5063f6..746fa7c4d9e 100644 --- a/cmd/cue/cmd/testdata/script/modtidy_initial.txtar +++ b/cmd/cue/cmd/testdata/script/modtidy_initial.txtar @@ -19,7 +19,7 @@ cmp stdout cue-cache-dir.files # Unused dependencies should not have their entire source downloaded or extracted. ! stdout 'unused\.com.*\.zip$' -- want-module -- -module: "main.org@v0" +module: "main.org" language: { version: "v0.8.0" } @@ -47,10 +47,10 @@ deps: { "example.com@v0": "v0.0.1" } -- cue.mod/module.cue -- -module: "main.org@v0" +module: "main.org" language: version: "v0.8.0" -deps: "example.com@v0": v: "v0.0.1" +deps: "example.com": v: "v0.0.1" deps: "unused.com@v0": v: "v0.2.4" -- main.cue --