-
Notifications
You must be signed in to change notification settings - Fork 276
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tools/flow: add IgnoreConcrete option
Ignore dependencies which point to immutable values. This is the behavior of `cue cmd`. It is not sure whether this is necessarily desirable, so this has been added as an option. It would be possible to always have this behavior, though. Change-Id: I3feacf5600a7ea1b69986e12fb5c7a285c9f413a Reviewed-on: https://cue-review.googlesource.com/c/cue/+/7642 Reviewed-by: Marcel van Lohuizen <mpvl@golang.org> Reviewed-by: CUE cueckoo <cueckoo@gmail.com>
- Loading branch information
Showing
4 changed files
with
60 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
#IgnoreConcrete: true | ||
-- in.cue -- | ||
root: { | ||
t1: { | ||
$id: "sequenced" | ||
seq: 1 | ||
text: t2.value | ||
value: "v" | ||
} | ||
t2: { | ||
$id: "sequenced" | ||
seq: 2 | ||
text: t1.value | ||
value: "v" | ||
} | ||
} | ||
-- out/run/errors -- | ||
-- out/run/t0 -- | ||
graph TD | ||
t0("root.t1 [Ready]") | ||
t1("root.t2 [Ready]") | ||
|
||
-- out/run/t1 -- | ||
graph TD | ||
t0("root.t1 [Terminated]") | ||
t1("root.t2 [Running]") | ||
|
||
-- out/run/t1/value -- | ||
{ | ||
$id: "sequenced" | ||
seq: 1 | ||
text: "v" | ||
value: "v" | ||
} | ||
-- out/run/t2 -- | ||
graph TD | ||
t0("root.t1 [Terminated]") | ||
t1("root.t2 [Terminated]") | ||
|
||
-- out/run/t2/value -- | ||
{ | ||
$id: "sequenced" | ||
seq: 2 | ||
text: "v" | ||
value: "v" | ||
} |