File tree Expand file tree Collapse file tree 3 files changed +28
-4
lines changed
cmd/cue/cmd/testdata/script
internal/mod/modimports/testdata Expand file tree Collapse file tree 3 files changed +28
-4
lines changed Original file line number Diff line number Diff line change @@ -7,8 +7,10 @@ exec cue eval _foo.cue
7
7
cmp stdout expect-stdout-underscore
8
8
9
9
# Ensure package eval excludes both for completeness
10
- exec cue eval .
11
- cmp stdout expect-stdout-pkg
10
+ # TODO fix this
11
+ ! exec cue eval .
12
+ cmp stderr expect-stderr-pkg
13
+ # cmp stdout expect-stdout-pkg
12
14
13
15
-- .foo.cue --
14
16
package foo
18
20
package foo
19
21
20
22
b: 42
23
+ -- .bar.cue --
24
+ package bar
21
25
-- foo.cue --
22
26
package foo
23
27
28
32
b: 42
29
33
-- expect-stdout-pkg --
30
34
c: 42
35
+ -- expect-stderr-pkg --
36
+ found packages "bar" (.bar.cue) and "foo" (.foo.cue) in "."
Original file line number Diff line number Diff line change 2
2
# what packages it resolves to.
3
3
4
4
exec cue eval ./...
5
- cmp stdout stdout .golden
5
+ cmp stdout eval-all .golden
6
6
7
7
! exec cue eval -t something ./...
8
8
stderr '^found packages "x" \(x.cue\) and "y" \(y.cue\) in ".*x"$'
9
9
10
- -- stdout.golden --
10
+ # Test that a non-wildcard pattern similarly respects
11
+ # build attributes.
12
+
13
+ cd x
14
+ ! exec cue eval
15
+ cmp stderr $WORK/eval-x.golden
16
+
17
+ -- eval-all.golden --
11
18
x: 5
12
19
// ---
13
20
x: 5
21
+ -- eval-x.golden --
22
+ found packages "x" (x.cue) and "y" (y.cue) in "x"
14
23
-- cue.mod/module.cue --
15
24
module: "mod.com"
16
25
language: version: "v0.9.0"
Original file line number Diff line number Diff line change
1
+ TODO fix code so it does not include "hidden" CUE files
1
2
-- want --
2
3
x.cue "dep1" "dep2:a" "dep2:b" "dep3"
3
4
z.cue
5
+ y/.omitted.cue
6
+ y/_omitted.cue
4
7
y/y1.cue "dep3" "dep4"
5
8
y/y2.cue
6
9
y/z1.cue
@@ -41,6 +44,12 @@ package z
41
44
-- y/z2.cue --
42
45
package z
43
46
47
+ -- y/.omitted.cue --
48
+ package foo
49
+
50
+ -- y/_omitted.cue --
51
+ package foo
52
+
44
53
-- z.cue --
45
54
package example
46
55
You can’t perform that action at this time.
0 commit comments