-
Notifications
You must be signed in to change notification settings - Fork 294
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cmd/cue/cmd: load import dependencies of tool files
Fixes #869 Fixes #871 Change-Id: I7c439d298d819bfc20c33f2e028a0216a57c4307 Reviewed-on: https://cue-review.googlesource.com/c/cue/+/9303 Reviewed-by: CUE cueckoo <[email protected]> Reviewed-by: Paul Jolly <[email protected]>
- Loading branch information
Showing
2 changed files
with
34 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,25 @@ | ||
cue cmd foo | ||
cmp stdout cue_cmd_foo_both.golden | ||
|
||
-- cue.mod/module.cue -- | ||
module: "example.org/test" | ||
-- sub/sub.cue -- | ||
package sub | ||
|
||
User: "sub" | ||
-- x_tool.cue -- | ||
package x | ||
|
||
import ( | ||
"tool/cli" | ||
|
||
"example.org/test/sub" | ||
) | ||
|
||
command: foo: cli.Print & { | ||
text: "test \(sub.User)" | ||
} | ||
-- cue_eval.golden -- | ||
x: "sub" | ||
-- cue_cmd_foo_both.golden -- | ||
test sub |