-
Notifications
You must be signed in to change notification settings - Fork 279
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This CL adds some tests for behavior that changes with subsequent CLs in this chain. Also adjust some tests so they are using legitimate import paths with a valid package name implied from the import path. For #3155 Signed-off-by: Roger Peppe <rogpeppe@gmail.com> Change-Id: Ia811527f0389b422e916b4eb472600b2640569f5 Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1195279 TryBot-Result: CUEcueckoo <cueckoo@cuelang.org> Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com> Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
- Loading branch information
Showing
7 changed files
with
76 additions
and
4 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
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
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,32 @@ | ||
-- test0/initial-requirements -- | ||
main.test@v0 | ||
example.com@v0.0.1 | ||
-- test0/root-packages -- | ||
main.test@v0:main | ||
-- test0/default-major-versions -- | ||
-- test0/want -- | ||
main.test@v0:main | ||
flags: inAll,isRoot,fromRoot,importsLoaded | ||
mod: main.test@v0 | ||
location: . | ||
imports: | ||
example.com/blah@v0 | ||
example.com/blah@v0 | ||
flags: inAll,isRoot,fromRoot,importsLoaded | ||
mod: example.com@v0.0.1 | ||
location: _registry/example.com_v0.0.1/blah | ||
-- main.cue -- | ||
package main | ||
import "example.com/blah@v0" | ||
|
||
-- _registry/example.com_v0.0.1/cue.mod/module.cue -- | ||
module: "example.com@v0" | ||
language: version: "v0.8.0" | ||
-- _registry/example.com_v0.0.1/blah/blah.cue -- | ||
package blah | ||
-- _registry/example.com_v0.0.1/x.cue -- | ||
package blah | ||
import _ "foo.com/bar/hello/goodbye@v0" | ||
-- _registry/example.com_v0.0.1/y.cue -- | ||
package other | ||
import _ "foo.com/bar/somethingelse@v0" |
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,28 @@ | ||
-- test0/initial-requirements -- | ||
main.test@v0 | ||
example.com@v0.0.1 | ||
-- test0/root-packages -- | ||
main.test@v0:main | ||
-- test0/default-major-versions -- | ||
-- test0/want -- | ||
main.test@v0:main | ||
flags: inAll,isRoot,fromRoot,importsLoaded | ||
mod: main.test@v0 | ||
location: . | ||
imports: | ||
example.com/blah@v0 | ||
example.com/blah@v0 | ||
flags: inAll,isRoot,fromRoot,importsLoaded | ||
mod: example.com@v0.0.1 | ||
location: _registry/example.com_v0.0.1/blah | ||
-- main.cue -- | ||
package main | ||
import "example.com/blah@v0" | ||
|
||
-- _registry/example.com_v0.0.1/cue.mod/module.cue -- | ||
module: "example.com@v0" | ||
language: version: "v0.8.0" | ||
-- _registry/example.com_v0.0.1/blah/x.cue -- | ||
package a | ||
-- _registry/example.com_v0.0.1/blah/other/other.cue -- | ||
package b |