File tree 1 file changed +25
-1
lines changed
1 file changed +25
-1
lines changed Original file line number Diff line number Diff line change @@ -612,7 +612,31 @@ dir: $CWD/testdata/testmod/issue3306/x
612
612
display:./issue3306/x
613
613
files:
614
614
$CWD/testdata/testmod/issue3306/x.cue
615
- $CWD/testdata/testmod/issue3306/x/x.cue` }}
615
+ $CWD/testdata/testmod/issue3306/x/x.cue` }, {
616
+ // This test checks that when we use Package: "*",
617
+ // we can still use imported packages.
618
+ name : "AllPackagesWithImports" ,
619
+ cfg : & Config {
620
+ Dir : testdataDir ,
621
+ Package : "*" ,
622
+ },
623
+ args : []string {"." },
624
+ want : `path: mod.test/test@v0:_
625
+ module: mod.test/test@v0
626
+ root: $CWD/testdata/testmod
627
+ dir: $CWD/testdata/testmod
628
+ display:.
629
+ files:
630
+ $CWD/testdata/testmod/anon.cue
631
+
632
+ path: mod.test/test@v0:test
633
+ module: mod.test/test@v0
634
+ root: $CWD/testdata/testmod
635
+ dir: $CWD/testdata/testmod
636
+ display:.
637
+ files:
638
+ $CWD/testdata/testmod/test.cue` ,
639
+ }}
616
640
tdtest .Run (t , testCases , func (t * tdtest.T , tc * loadTest ) {
617
641
pkgs := Instances (tc .args , tc .cfg )
618
642
You can’t perform that action at this time.
0 commit comments