Overview: ======== go tool vet doesn't work though it should be according to the README of https://github.com/golang/tools Steps to Reproduce: ================== Execute "go tool vet" Actual Results: ============== go tool: no such tool "vet"; to install: go get golang.org/x/tools/cmd/vet Expected Results: ================ Usage of vet: vet [flags] directory... vet [flags] files... # Must be a single package For more information run godoc golang.org/x/tools/cmd/vet Flags: -all=true: check everything; disabled if any explicit check is requested -asmdecl=unset: check assembly against Go declarations .... .... Build Date & Hardware: ===================== The last version of golang under FreeBSD 10.1-RELEASE-p10 amd64
(In reply to Anis Elleuch from comment #0) $ go version go version go1.4.2 freebsd/amd64
Tools like godoc and go vet are developped in a separate repository. You have to intall them via "go get"
$ go get golang.org/x/tools/cmd/vet go install golang.org/x/tools/cmd/vet: open /usr/local/go/pkg/tool/freebsd_amd64/vet: permission denied it seems that installing vet via "go get" needs root access..
There are three tools included in the latest official linux distribution (currently 1.4.2) that are missing from the FreeBSD ports version: cover tour vet I believe installing each of these requires write access to /usr/local. Can't test atm since install is currently broken from a missing upstream dep. I'll confirm later and respond.
Here is some more info: vet and cover both require root (or GOROOT) access. tour can be installed without root via: go get golang.org/x/tour/gotour Tour probably has limited utility since there is an online version accessible via https://tour.golang.org/welcome/1. However, cover and vet are both very useful and should probably be installed by default.
This works as expected in later versions of go so closing.