On Fri, Mar 20, 2015, at 05:20 PM, Dmitrij D. Czarkoff wrote: > Adam Wolk said: > > I'm trying to install go tool cover under OpenBSD and it doesn't seem > > to respect $GOPATH through the whole process. > > > > $ go get golang.org/x/tools/cmd/cover > > go install golang.org/x/tools/cmd/cover: open > > /usr/local/go/pkg/tool/openbsd_386/cover: permission denied > > It is expected: only root should be able to write to /usr/local/go. Are > you sure you've set your user's go workplace? What does "echo $GOPATH" > tell you? > > -- > Dmitrij D. Czarkoff >
echo $GOPATH says: /home/mulander/go I of course expected the system to block that install. Searching the web now shows that it wants to install to $GOTOOLDIR: - http://stackoverflow.com/questions/27273053/permission-denied-error-for-go-tools They made it side step the normal GOPATH installation defaults and like the poster on SO notes it's unknown how the tools will behave when that path is changed. Hence the question if it should be packaged.