mailgun / godebug

DEPRECATED! https://github.com/derekparker/delve
Apache License 2.0
2.5k stars 107 forks source link

cannot find package "golang_org/x/net/route" #87

Closed meowssir closed 8 years ago

meowssir commented 8 years ago

$ 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 8 years ago

Closing issue.

I ran $ go get . then $ go build ./... in the main folder. It's working.