-
Notifications
You must be signed in to change notification settings - Fork 292
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue #3213 exposed a shortcoming in the modules logic when there is a Package field explicitly specified in the cue/load.Config struct. This CL adds some tests to expose existing behavior in this respect before a subsequent CL will apply a fix. For #3213. Signed-off-by: Roger Peppe <[email protected]> Change-Id: If101f7b6729acdc87a9ae62ebd932044fb276e51 Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1196177 Reviewed-by: Daniel Martí <[email protected]> Unity-Result: CUE porcuepine <[email protected]> TryBot-Result: CUEcueckoo <[email protected]> Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1196231 Reviewed-by: Paul Jolly <[email protected]>
- Loading branch information
Showing
5 changed files
with
58 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package other | ||
|
||
import "mod.test/test/sub" | ||
|
||
// This is a non-default package for the directory. | ||
|
||
x: sub |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
package multi3 | ||
|
||
// This is the default package for the directory. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package other | ||
|
||
import "mod.test/test/sub" | ||
|
||
// This is a non-default package for the directory. | ||
|
||
x: sub |