Skip to content

Commit 5f4bd37

Browse files
committed
tools/flow: avoid looking like we're using go run for real
While grepping around to replace `go run cuelang.org/go/cmd/cue` with `go tool cue`, I had to do a double take before I realised that this file was not actually running the cue tool at all. Make that more obvious, which doesn't alter the test behavior. Signed-off-by: Daniel Martí <[email protected]> Change-Id: I378a810eb0db62e46c55a6ea00483ae42ed6c70a Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1218732 TryBot-Result: CUEcueckoo <[email protected]> Unity-Result: CUE porcuepine <[email protected]> Reviewed-by: Matthew Sackman <[email protected]>
1 parent 0c84f96 commit 5f4bd37

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tools/flow/testdata/template.txtar

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ root: {
2020
}
2121
convert: exec.Run & {
2222
stdin: get.response.body
23-
cmd: "go run cuelang.org/go/cmd/cue import -f -p json -l #Workflow: jsonschema: - --outfile pkg/github.com/SchemaStore/schemastore/src/schemas/json/github-workflow.cue"
23+
cmd: "cue-fake import -f -p json -l #Workflow: jsonschema: - --outfile pkg/github.com/SchemaStore/schemastore/src/schemas/json/github-workflow.cue"
2424
}
2525
}
2626
-- out/run/errors --
@@ -65,7 +65,7 @@ graph TD
6565
-- out/run/t2/value --
6666
{
6767
$id: "tool/exec.Run"
68-
cmd: "go run cuelang.org/go/cmd/cue import -f -p json -l #Workflow: jsonschema: - --outfile pkg/github.com/SchemaStore/schemastore/src/schemas/json/github-workflow.cue"
68+
cmd: "cue-fake import -f -p json -l #Workflow: jsonschema: - --outfile pkg/github.com/SchemaStore/schemastore/src/schemas/json/github-workflow.cue"
6969
env: {} | []
7070
stderr: null
7171
stdin: GET.response.body & (*null | string | bytes)
@@ -120,7 +120,7 @@ graph TD
120120
-- out/run/t3/value --
121121
{
122122
$id: "tool/exec.Run"
123-
cmd: "go run cuelang.org/go/cmd/cue import -f -p json -l #Workflow: jsonschema: - --outfile pkg/github.com/SchemaStore/schemastore/src/schemas/json/github-workflow.cue"
123+
cmd: "cue-fake import -f -p json -l #Workflow: jsonschema: - --outfile pkg/github.com/SchemaStore/schemastore/src/schemas/json/github-workflow.cue"
124124
env: {}
125125
stdout: "foo"
126126
stderr: null

0 commit comments

Comments
 (0)