mirror of
https://github.com/golang/go
synced 2024-11-18 09:04:49 -07:00
cmd/goimports: return exit code 1 when -l finds files to change
Fixes: golang/go#39032 Change-Id: Ie10b659bcac2eff0f47284d66bbd473e5e503532 Reviewed-on: https://go-review.googlesource.com/c/tools/+/234484 Reviewed-by: Heschi Kreinick <heschi@google.com> Run-TryBot: Heschi Kreinick <heschi@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
parent
7521f6f425
commit
e641245118
@ -154,6 +154,7 @@ func processFile(filename string, in io.Reader, out io.Writer, argType argumentT
|
||||
// formatting has changed
|
||||
if *list {
|
||||
fmt.Fprintln(out, filename)
|
||||
exitCode = 1
|
||||
}
|
||||
if *write {
|
||||
if argType == fromStdin {
|
||||
|
Loading…
Reference in New Issue
Block a user