I'm trying to profile my code however go test -cover always complains about cover not being available.
Upon further investigation "go tool cover" doesn't work either and asks me to run "go get ......etc".
Whenever I run go get ....., it doesn't print anything output and go tool cover still fails to work.
I've tried reinstalling go from source and from tarball.
go tool
go tool: no tool directory: open /usr/local/go/lib/gccgo/tool: no such file or directory
go list all | grep cover:
go env:
GOARCH="amd64"
GOBIN=""
GOCHAR="6"
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/oliver/go"
GORACE=""
GOROOT="/usr/local/go"
GOTOOLDIR="/usr/local/go/lib/gccgo/tool"
TERM="dumb"
CC="gcc"
GOGCCFLAGS="-g -O2 -fPIC -m64 -pthread"
CXX="g++"
CGO_ENABLED="1"
it seg faulted.
running cover instead of go tool cover seems to work although
I don't think this is intended behaviour? Is there something I have done wrong or
failed to do?