madcowfred / GoPostStuff

Multiple connection USENET binary poster written in Go
MIT License
32 stars 24 forks source link

GOPATH entry cannot start with shell... #21

Open scriptzteam opened 7 years ago

scriptzteam commented 7 years ago

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

jonascj commented 7 years ago

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.

f-a-a commented 7 years ago

Just wanna add that I find that doing

export GOPATH="$HOME/go"

feels 🏠-like

jonascj commented 7 years ago

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

bamkikovic commented 1 year ago

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