this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

cmd/cue: mention -c=false in vet's incomplete error

This updates the general error message emitted when cue-vet fails
because "some instances are incomplete" by adding a mention of the
-c=false flag that could allow the vet to succeed.

Signed-off-by: Jonathan Matthews <github@hello.jonathanmatthews.com>
Change-Id: I21ceec2f6c3c69b17a46633cbb3ee371c946238f
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1208694
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>

authored by

Jonathan Matthews and committed by
Daniel Martí
6fb2a9bd 8d01019e

+4 -4
+1 -1
cmd/cue/cmd/testdata/script/issue324.txtar
··· 10 10 d: yaml.Marshal(a.b) 11 11 12 12 -- expect-stderr -- 13 - some instances are incomplete; use the -c flag to show errors or suppress this message 13 + some instances are incomplete; use the -c flag to show errors or -c=false to allow incomplete instances
+1 -1
cmd/cue/cmd/testdata/script/vet.txtar
··· 2 2 cmp stderr expect-stderr 3 3 4 4 -- expect-stderr -- 5 - some instances are incomplete; use the -c flag to show errors or suppress this message 5 + some instances are incomplete; use the -c flag to show errors or -c=false to allow incomplete instances 6 6 -- partial.cue -- 7 7 package partial 8 8
+1 -1
cmd/cue/cmd/testdata/script/vet_req.txtar
··· 22 22 y: 1 23 23 -- expect-stdout1 -- 24 24 -- expect-stderr1 -- 25 - some instances are incomplete; use the -c flag to show errors or suppress this message 25 + some instances are incomplete; use the -c flag to show errors or -c=false to allow incomplete instances 26 26 -- expect-stdout2 -- 27 27 -- expect-stderr2 -- 28 28 -- expect-stdout3 --
+1 -1
cmd/cue/cmd/vet.go
··· 132 132 shown = true 133 133 p := message.NewPrinter(getLang()) 134 134 _, _ = p.Fprintln(w, 135 - "some instances are incomplete; use the -c flag to show errors or suppress this message") 135 + "some instances are incomplete; use the -c flag to show errors or -c=false to allow incomplete instances") 136 136 } 137 137 } 138 138 printError(cmd, err)