Cannot install vet package with go get -
i'm running following command:
$ go -u golang.org/x/tools/cmd/vet
package golang.org/x/tools/cmd/vet: cannot find package "golang.org/x/tools/cmd/vet" in of: c:\development\software\go\src\golang.org\x\tools\cmd\vet (from $goroot)
c:\development\software\go\downloaded_packages\src\golang.org\x\tools\cmd\vet (from $gopath)
i can't understand how cannot find package
makes sense get
. supposed package internet. why looking locally?
@jimb summed in comments - don't need install go vet
separately.
but completeness, direct answer op question code go vet
command no longer lives @ golang.org/x/tools/cmd/vet
(see https://golang.org/doc/go1.2#go_tools_godoc - , since code has moved github).
so when run: go -u golang.org/x/tools/cmd/vet
appears git cloning golang.org/x/tools/cmd
package , trying compile golang.org/x/tools/cmd/vet
resulting in error ("cannot find package...") because "vet" part doesn't exist - moved out while ago. (go get
first downloads/clones code , attempts compile package on local system.)
and of say, have go vet
- try typing "go vet -h" , if works (you should see like: "usage: vet ..."), you're set.
Comments
Post a Comment