Hello,
For some reason, no matter what i do, i just can't seem to get the go path 
to work. 
My tree(not entirely sure what it is):
-documents
            - golang
                       - src
                                   - hello1
hello1 is where i have my code

when ever i try and do go install i get this message. 

go install: no install location for directory 
/Users/samgreenhill/documents/golang/src/hello1 outside GOPATH

For more details see: 'go help go path'


After looking it up, i tried to customize my .bash_profile and i put this

export GOROOT="/usr/local/go"

export GOPATH="/Users/samgreenhill/documents/golang"

export PATH="/Users/samgreenhill/documents/golang/bin:$PATH"


and it still returned the same message

Sams-MBP:hello1 samgreenhill$ go install

go install: no install location for directory 
/Users/samgreenhill/documents/golang/src/hello1 outside GOPATH

For more details see: 'go help gopath'

Sams-MBP:hello1 samgreenhill$ 



i am curious what i am doing wrong. 

thank you

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to