cmd/go: go fmt
should invoke gofmt
from the current sdk installation
#10755
Labels
Milestone
go fmt
should invoke gofmt
from the current sdk installation
#10755
At https://github.com/golang/go/blob/master/src/cmd/go/fmt.go#L36
gofmt
is invoked from PATH. So if I have several installations of Go then no matter whichgo fmt
I invoke thegofmt
from PATH will be used and it's not correct IMHO.Unfortunately the fix like
won't work on apt-get (has no
bin
directory) and yum (gofmt
is placed underbin/linux_64
) installations.The text was updated successfully, but these errors were encountered: