1
0
mirror of https://github.com/golang/go synced 2024-11-27 04:11:22 -07:00

cmd/go: implement -x correctly for 'go vet', 'go fmt', and so on

Fixes #5676.

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/13250047
This commit is contained in:
Russ Cox 2013-09-10 12:47:52 -04:00
parent c971f95c10
commit 7c6db642b0

View File

@ -360,7 +360,7 @@ func exitIfErrors() {
func run(cmdargs ...interface{}) {
cmdline := stringList(cmdargs...)
if buildN || buildV {
if buildN || buildX {
fmt.Printf("%s\n", strings.Join(cmdline, " "))
if buildN {
return