this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

cmd/cue: remove skipped test scripts for fixing old definitions

These tests have been disabled since `cue fix` stopped fixing old-style
definitions like `foo :: bar`, back in July 2020
via https://cue-review.googlesource.com/c/cue/+/6656.

That change disabled the scripts rather than removing them entirely,
with a note to keep them around until we were sure about the change.

It's been nearly three years since the tests were disabled,
and support for `::` was removed entirely in February 2023 via
https://cuelang.org/cl/546886, so there's no going back for sure.

The test scripts are always in the git history for reference if needed.

Signed-off-by: Daniel Martí <mvdan@mvdan.cc>
Change-Id: I2a90f69cbf9c90c99aef851781e19730f4b08c47
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/552384
Unity-Result: CUEcueckoo <cueckoo@cuelang.org>
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
Reviewed-by: Paul Jolly <paul@myitcv.io>

-306
-118
cmd/cue/cmd/testdata/script/fix.txtar
··· 1 - skip 'No longer supported, but keeping around until for sure.' 2 - 3 - exec cue fix 4 - 5 - cmp foo/foo.cue expect/foo/foo_cue 6 - cmp foo/foo_test.cue expect/foo/foo_test_cue 7 - cmp foo/foo_tool.cue expect/foo/foo_tool_cue 8 - cmp bar/bar.cue expect/bar/bar_cue 9 - cmp cue.mod/pkg/foobar.org/notimported/notimported.cue expect/cue.mod/pkg/foobar.org/notimported/notimported.cue 10 - cmp cue.mod/gen/foobar.org/imported/imported.cue expect/cue.mod/gen/foobar.org/imported/imported.cue 11 - 12 - -- cue.mod/module.cue -- 13 - module: "mod.test" 14 - -- cue.mod/pkg/foobar.org/notimported/notimported.cue -- 15 - package notimported 16 - 17 - Foo :: { 18 - x: int 19 - } 20 - a: Foo 21 - -- cue.mod/gen/foobar.org/imported/imported.cue -- 22 - package imported 23 - 24 - Bar :: { 25 - x: int 26 - } 27 - -- bar/bar.cue -- 28 - package bar 29 - 30 - import ( 31 - "mod.test/foo" 32 - "foobar.org/imported" 33 - ) 34 - 35 - A :: foo.Def & { 36 - a: >10 37 - 38 - B :: { c: int } 39 - } 40 - 41 - b: A & { a: 11 } 42 - 43 - c: imported.Bar & { a: 11 } 44 - 45 - d: A.B.c 46 - e: [...A.B.c] 47 - 48 - -- foo/foo.cue -- 49 - package foo 50 - 51 - Def :: { 52 - a: int 53 - b: string 54 - } 55 - 56 - a: Def 57 - c: [Def.b]: int 58 - 59 - -- foo/foo_test.cue -- 60 - package foo 61 - 62 - A :: int 63 - 64 - -- expect/foo/foo_test_cue -- 65 - package foo 66 - 67 - #A: int 68 - -- foo/foo_tool.cue -- 69 - package foo 70 - 71 - B :: int 72 - 73 - -- expect/foo/foo_tool_cue -- 74 - package foo 75 - 76 - #B: int 77 - -- expect/bar/bar_cue -- 78 - package bar 79 - 80 - import ( 81 - "mod.test/foo" 82 - "foobar.org/imported" 83 - ) 84 - 85 - #A: foo.#Def & { 86 - a: >10 87 - #B: {c: int} 88 - } 89 - 90 - b: #A & {a: 11} 91 - 92 - c: imported.#Bar & {a: 11} 93 - 94 - d: #A.#B.c 95 - e: [...#A.#B.c] 96 - -- expect/foo/foo_cue -- 97 - package foo 98 - 99 - #Def: { 100 - a: int 101 - b: string 102 - } 103 - 104 - a: #Def 105 - c: [#Def.b]: int 106 - -- expect/cue.mod/pkg/foobar.org/notimported/notimported.cue -- 107 - package notimported 108 - 109 - #Foo: { 110 - x: int 111 - } 112 - a: #Foo 113 - -- expect/cue.mod/gen/foobar.org/imported/imported.cue -- 114 - package imported 115 - 116 - #Bar: { 117 - x: int 118 - }
-89
cmd/cue/cmd/testdata/script/fix_files.txtar
··· 1 - skip 'No longer supported, but keeping around until for sure.' 2 - 3 - exec cue fix ./foo/foo.cue ./bar/bar.cue 4 - 5 - cmp foo/foo.cue expect/foo/foo_cue 6 - cmp bar/bar.cue expect/bar/bar_cue 7 - cmp cue.mod/pkg/foobar.org/notimported/notimported.cue expect/cue.mod/pkg/foobar.org/notimported/notimported.cue 8 - cmp cue.mod/gen/foobar.org/imported/imported.cue expect/cue.mod/gen/foobar.org/imported/imported.cue 9 - 10 - -- cue.mod/module.cue -- 11 - module: "mod.test" 12 - -- cue.mod/pkg/foobar.org/notimported/notimported.cue -- 13 - package notimported 14 - 15 - Foo :: { 16 - x: int 17 - } 18 - a: Foo 19 - -- cue.mod/gen/foobar.org/imported/imported.cue -- 20 - package imported 21 - 22 - Bar :: { 23 - x: int 24 - } 25 - -- bar/bar.cue -- 26 - package bar 27 - 28 - import ( 29 - "foobar.org/imported" 30 - ) 31 - 32 - A :: { 33 - B :: { c: int } 34 - } 35 - 36 - b: A & { a: 11 } 37 - 38 - d: imported.Bar & { a: 11 } 39 - 40 - d: A.B.c 41 - e: [...A.B.c] 42 - 43 - -- foo/foo.cue -- 44 - Def :: { 45 - a: int 46 - b: string 47 - } 48 - 49 - a: Def 50 - c: [Def.b]: int 51 - 52 - -- expect/bar/bar_cue -- 53 - package bar 54 - 55 - import ( 56 - "foobar.org/imported" 57 - ) 58 - 59 - #A: { 60 - #B: {c: int} 61 - } 62 - 63 - b: #A & {a: 11} 64 - 65 - d: imported.#Bar & {a: 11} 66 - 67 - d: #A.#B.c 68 - e: [...#A.#B.c] 69 - -- expect/foo/foo_cue -- 70 - #Def: { 71 - a: int 72 - b: string 73 - } 74 - 75 - a: #Def 76 - c: [#Def.b]: int 77 - -- expect/cue.mod/pkg/foobar.org/notimported/notimported.cue -- 78 - package notimported 79 - 80 - Foo :: { 81 - x: int 82 - } 83 - a: Foo 84 - -- expect/cue.mod/gen/foobar.org/imported/imported.cue -- 85 - package imported 86 - 87 - Bar :: { 88 - x: int 89 - }
-99
cmd/cue/cmd/testdata/script/fix_pkg.txtar
··· 1 - skip 'No longer supported, but keeping around until for sure.' 2 - 3 - exec cue fix ./bar foobar.org/notimported 4 - 5 - cmp foo/foo.cue expect/foo/foo_cue 6 - cmp bar/bar.cue expect/bar/bar_cue 7 - cmp cue.mod/pkg/foobar.org/notimported/notimported.cue expect/cue.mod/pkg/foobar.org/notimported/notimported.cue 8 - cmp cue.mod/gen/foobar.org/imported/imported.cue expect/cue.mod/gen/foobar.org/imported/imported.cue 9 - 10 - -- cue.mod/module.cue -- 11 - module: "mod.test" 12 - -- cue.mod/pkg/foobar.org/notimported/notimported.cue -- 13 - package notimported 14 - 15 - Foo :: { 16 - x: int 17 - } 18 - a: Foo 19 - -- cue.mod/gen/foobar.org/imported/imported.cue -- 20 - package imported 21 - 22 - Bar :: { 23 - x: int 24 - } 25 - -- bar/bar.cue -- 26 - package bar 27 - 28 - import ( 29 - "mod.test/foo" 30 - "foobar.org/imported" 31 - ) 32 - 33 - A :: foo.Def & { 34 - a: >10 35 - 36 - B :: { c: int } 37 - } 38 - 39 - b: A & { a: 11 } 40 - 41 - c: imported.Bar & { a: 11 } 42 - 43 - d: A.B.c 44 - e: [...A.B.c] 45 - 46 - -- foo/foo.cue -- 47 - package foo 48 - 49 - Def :: { 50 - a: int 51 - b: string 52 - } 53 - 54 - a: Def 55 - c: [Def.b]: int 56 - 57 - -- expect/bar/bar_cue -- 58 - package bar 59 - 60 - import ( 61 - "mod.test/foo" 62 - "foobar.org/imported" 63 - ) 64 - 65 - #A: foo.#Def & { 66 - a: >10 67 - #B: {c: int} 68 - } 69 - 70 - b: #A & {a: 11} 71 - 72 - c: imported.#Bar & {a: 11} 73 - 74 - d: #A.#B.c 75 - e: [...#A.#B.c] 76 - -- expect/foo/foo_cue -- 77 - package foo 78 - 79 - Def :: { 80 - a: int 81 - b: string 82 - } 83 - 84 - a: Def 85 - c: [Def.b]: int 86 - 87 - -- expect/cue.mod/pkg/foobar.org/notimported/notimported.cue -- 88 - package notimported 89 - 90 - #Foo: { 91 - x: int 92 - } 93 - a: #Foo 94 - -- expect/cue.mod/gen/foobar.org/imported/imported.cue -- 95 - package imported 96 - 97 - Bar :: { 98 - x: int 99 - }