Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GOPATH entry cannot start with shell... #21

Open
scriptzteam opened this issue Aug 9, 2016 · 4 comments
Open

GOPATH entry cannot start with shell... #21

scriptzteam opened this issue Aug 9, 2016 · 4 comments

Comments

@scriptzteam
Copy link

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
Copy link

jonascj commented Apr 15, 2017

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
Copy link

f-a-a commented Apr 22, 2017

Just wanna add that I find that doing

export GOPATH="$HOME/go"

feels 🏠-like

@jonascj
Copy link

jonascj commented Apr 24, 2017

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

@bamkikovic
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants