Closed meowssir closed 8 years ago
$ go version go version go1.7.1 darwin/amd64
$ go version
I get the this error with run when I import "golang.org/x/crypto/ssh" and the "net" package.
run
"golang.org/x/crypto/ssh"
"net"
Should I use --instrument with those particular packages?
--instrument
/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
Closing issue.
I ran $ go get . then $ go build ./... in the main folder. It's working.
$ go get .
$ go build ./...
$ go version
go version go1.7.1 darwin/amd64I 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?