go build issue with 1.9 version

363 views
Skip to first unread message

desaia...@gmail.com

unread,
Dec 6, 2017, 7:57:21 AM12/6/17
to golang-nuts
getting below issue while building on Mac.. please help



go build myapp.go
/usr/local/go/src/crypto/tls/cipher_suites.go:18:2: cannot find package "golang_org/x/crypto/chacha20poly1305" in any of:
/usr/local/go/src/golang_org/x/crypto/chacha20poly1305 (from $GOROOT)
/Users/xyz/go/src/golang_org/x/crypto/chacha20poly1305 (from $GOPATH)
/usr/local/go/src/crypto/tls/key_agreement.go:20:2: cannot find package "golang_org/x/crypto/curve25519" in any of:
/usr/local/go/src/golang_org/x/crypto/curve25519 (from $GOROOT)
/Users/xyz/go/src/golang_org/x/crypto/curve25519 (from $GOPATH)
/usr/local/go/src/net/http/h2_bundle.go:46:2: cannot find package "golang_org/x/net/http2/hpack" in any of:
/usr/local/go/src/golang_org/x/net/http2/hpack (from $GOROOT)
/Users/xyz/go/src/golang_org/x/net/http2/hpack (from $GOPATH)
/usr/local/go/src/net/http/h2_bundle.go:47:2: cannot find package "golang_org/x/net/idna" in any of:
/usr/local/go/src/golang_org/x/net/idna (from $GOROOT)
/Users/xyz/go/src/golang_org/x/net/idna (from $GOPATH)
/usr/local/go/src/net/http/h2_bundle.go:48:2: cannot find package "golang_org/x/net/lex/httplex" in any of:
/usr/local/go/src/golang_org/x/net/lex/httplex (from $GOROOT)
/Users/xyz/go/src/golang_org/x/net/lex/httplex (from $GOPATH)
/usr/local/go/src/net/http/transport.go:32:2: cannot find package "golang_org/x/net/proxy" in any of:
/usr/local/go/src/golang_org/x/net/proxy (from $GOROOT)
/Users/xyz/go/src/golang_org/x/net/proxy (from $GOPATH)
/usr/local/go/src/net/interface_bsd.go:12:2: cannot find package "golang_org/x/net/route" in any of:
/usr/local/go/src/golang_org/x/net/route (from $GOROOT)
/Users/xyz/go/src/golang_org/x/net/route (from $GOPATH)
import cycle not allowed
package archive/zip
imports bufio
imports bytes
imports errors
imports runtime
imports runtime/internal/atomic
imports runtime

desaia...@gmail.com

unread,
Dec 6, 2017, 8:06:10 AM12/6/17
to golang-nuts
I can see it's under 

/usr/local/go/src/vendor/golang_org/x/crypto/chacha20poly1305 (from $GOROOT)

but how to resolve it

Thanks,

desaia...@gmail.com

unread,
Dec 6, 2017, 8:13:08 AM12/6/17
to golang-nuts
it's sorted.. freshly installed


On Wednesday, December 6, 2017 at 4:57:21 PM UTC+4, Abhijit Desai wrote:

wst...@gmail.com

unread,
Jan 19, 2018, 8:49:01 AM1/19/18
to golang-nuts
could you share how you solved this issue?

在 2017年12月6日星期三 UTC+8下午9:13:08,Abhijit Desai写道:

desaia...@gmail.com

unread,
Jan 19, 2018, 9:42:08 AM1/19/18
to golang-nuts
removed/uninstalled older version from mac which I installed by brew from /usr/local/go
then downloaded tar and extracted to same folder from https://golang.org/dl/
setup path and goroot folders accordingly https://golang.org/doc/install

basically manual installation rather than brew

hope it will help
Reply all
Reply to author
Forward
0 new messages