GoPostStuff icon indicating copy to clipboard operation
GoPostStuff copied to clipboard

GOPATH entry cannot start with shell...

Open scriptzteam opened this issue 9 years ago • 4 comments

path should be /go and not ~/go beacause of this:

root@xxx:~# go get github.com/madcowfred/GoPostStuff go: GOPATH entry cannot start with shell metacharacter '~': "~/go"

and:

root@xxx:~# go get github.com/madcowfred/GoPostStuff package code.google.com/p/gcfg: unable to detect version control system for code.google.com/ path

scriptzteam avatar Aug 09 '16 14:08 scriptzteam

I had to do export GOPATH="/home/username/go". "/go" seems to indicate a folder go in the root of the filesystem, which might work, but not what I wanted.

jonascj avatar Apr 15 '17 12:04 jonascj

Just wanna add that I find that doing

export GOPATH="$HOME/go"

feels 🏠-like

f-a-a avatar Apr 22 '17 19:04 f-a-a

or export GOPATH=~/go without quotes, with quotes ~ is not expanded and go complains.

jonascj avatar Apr 24 '17 14:04 jonascj

Thank you f-a-a export GOPATH="$HOME/go" IT WORKED

bamkikovic avatar Aug 10 '22 11:08 bamkikovic