This repository has been archived by the owner on Nov 18, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 171
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 <cueckoo@gmail.com> Reviewed-by: Paul Jolly <paul@myitcv.org.uk>
- 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 |