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:
parent
c971f95c10
commit
7c6db642b0
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user