On Mon, Aug 5, 2019 at 5:56 PM Shane H <shane....@gmail.com> wrote: > > I've done a bit of searching, and asked around, but not found an answer to my > (most likely self-inflicted) problem. > > I have been coding with Go 1.10 and 1.11 for a whiles, but I decided that it > was time to join the future and upgraded to 1.12. It worked fine for the > project I was creating at the time, but after some time (long enough for me > to forget the steps I took to upgrade!) I discovered issues with my install. > > I've tried to reinstall (Ubuntu, apt purge golang-1.* ) and reinstall, to no > avail. > > I need to know what I can check to stop this behaviour, sans reinstalling the > OS > > This is probably best demonstrated as: > shane@desktop ~/GoLang/src/github.com/ipfs/go-ipfs (master) $ make build > go version go1.12.7 linux/amd64 > bin/check_go_version 1.12 > go build "-asmflags=all='-trimpath=/home/shane/GoLang'" > "-gcflags=all='-trimpath=/home/shane/GoLang'" -ldflags="-X > "github.com/ipfs/go-ipfs".CurrentCommit=641d9f6b0-dirty" -o "cmd/ipfs/ipfs" > "github.com/ipfs/go-ipfs/cmd/ipfs" > /usr/local/go/src/crypto/tls/cipher_suites.go:18:2: unknown import path > "golang_org/x/crypto/chacha20poly1305": cannot find module providing package > golang_org/x/crypto/chacha20poly1305 > /usr/local/go/src/crypto/x509/x509.go:36:2: unknown import path > "golang_org/x/crypto/cryptobyte": cannot find module providing package > golang_org/x/crypto/cryptobyte > /usr/local/go/src/crypto/x509/x509.go:37:2: unknown import path > "golang_org/x/crypto/cryptobyte/asn1": cannot find module providing package > golang_org/x/crypto/cryptobyte/asn1 > /usr/local/go/src/crypto/tls/key_agreement.go:18:2: unknown import path > "golang_org/x/crypto/curve25519": cannot find module providing package > golang_org/x/crypto/curve25519 > /usr/local/go/src/net/dnsclient.go:11:2: unknown import path > "golang_org/x/net/dns/dnsmessage": cannot find module providing package > golang_org/x/net/dns/dnsmessage > /usr/local/go/src/net/http/h2_bundle.go:47:2: unknown import path > "golang_org/x/net/http/httpguts": cannot find module providing package > golang_org/x/net/http/httpguts > /usr/local/go/src/net/http/transport.go:34:2: unknown import path > "golang_org/x/net/http/httpproxy": cannot find module providing package > golang_org/x/net/http/httpproxy > /usr/local/go/src/net/http/h2_bundle.go:48:2: unknown import path > "golang_org/x/net/http2/hpack": cannot find module providing package > golang_org/x/net/http2/hpack > /usr/local/go/src/net/http/h2_bundle.go:49:2: unknown import path > "golang_org/x/net/idna": cannot find module providing package > golang_org/x/net/idna > cmd/ipfs/Rules.mk:22: recipe for target 'cmd/ipfs/ipfs' failed > make: *** [cmd/ipfs/ipfs] Error 1
This looks like you unpacked a Go distribution into a directory that already held another Go distribution. Always unpack a Go distribution into an empty directory. Ian -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CAOyqgcVLy8VQ%3DXM7mbfj4GdKo_oS%3D6CX6Ru%2BJDYRm_RPrv_F5g%40mail.gmail.com.