Im trying to install a Go package but having the following error.
Here is my GOPATH
p@p-ubuntu:~/ba/docker-lvm-plugin$ echo $GOPATH
/usr/bin/go
Package install
p@p-ubuntu:~/ba/docker-lvm-plugin$ go get github.com/Sirupsen/logrus
package github.com/Sirupsen/logrus: mkdir /usr/bin/go: not a directory
Your GOPATH is wrong. It should not be the path to the go binary, it should be the path to the root of your go project directory, which should contain src
, pkg
, and bin
subdirectories. See what should be the values of GOPATH and GOROOT?