Hi,

I followed the steps here[1] but have run into an issue when running "go get 
github.com/tools/godep”.

package bufio: unrecognized import path "bufio"
package bytes: unrecognized import path "bytes"
package encoding/json: unrecognized import path "encoding/json"
package encoding/xml: unrecognized import path "encoding/xml"
package errors: unrecognized import path "errors"
…. and lots more ….

$echo $GOPATH
/Users/justinmclean/dev/go
$ echo $GOROOT
/usr/local/Cellar/go
$ which go
/usr/local/bin/go
$ ls -l /usr/local/bin/go
lrwxr-xr-x  1 justinmclean  admin  25 25 Oct 11:25 /usr/local/bin/go -> 
../Cellar/go/1.4.2/bin/go
$go version
go version go1.4.2 darwin/amd64

I’m running on OS X Yosemite.

A look at stack overflow/google shows a few people with similar issues and it 
seem the answer was to unset GOROOT. so it looks like GOROOT should not be set 
in the first place? Anyone more familiar with go can explain why that  was 
required?

There also a couple of minor issues with the setting instructions for instance 
this:
 go run %GOPATH%/src/github.com/mynewt/newt/newt.go
Should be this I think:
 go run $GOPATH/src/github.com/mynewt/newt/newt.go

Thanks,
Justin

1. https://github.com/mynewt/documentation/blob/master/docs/chapter1/project1.md

Reply via email to