cannot find package "golang_org/x/net/route"
Closed this issue · 1 comments
meowssir commented
$ go version
go version go1.7.1 darwin/amd64
I get the this error with run
when I import "golang.org/x/crypto/ssh"
and the "net"
package.
Should I use --instrument
with those particular packages?
/usr/local/opt/go/libexec/src/net/interface_bsd.go:12:2: could not import golang_org/x/net/route (cannot find package "golang_org/x/net/route" in any of:
/usr/local/opt/go/libexec/src/golang_org/x/net/route (from $GOROOT)
/Users/byrongrogan/work/src/golang_org/x/net/route (from $GOPATH))
/usr/local/opt/go/libexec/src/net/interface_darwin.go:10:2: could not import golang_org/x/net/route (cannot find package "golang_org/x/net/route" in any of:
/usr/local/opt/go/libexec/src/golang_org/x/net/route (from $GOROOT)
/Users/byrongrogan/work/src/golang_org/x/net/route (from $GOPATH))
/usr/local/opt/go/libexec/src/net/interface_darwin.go:13:40: undeclared name: route
/usr/local/opt/go/libexec/src/net/interface_darwin.go:14:14: undeclared name: route
/usr/local/opt/go/libexec/src/net/interface_darwin.go:18:9: undeclared name: route
/usr/local/opt/go/libexec/src/net/interface_darwin.go:24:14: undeclared name: route
/usr/local/opt/go/libexec/src/net/interface_darwin.go:28:15: undeclared name: route
couldn't load packages due to errors: net
meowssir commented
Closing issue.
I ran $ go get .
then $ go build ./...
in the main folder. It's working.