Closed dbasinge closed 2 years ago
What go version are you using? Not exactly sure where this comes from tbh, the paths seem strange as well.
Using Fedora 35, with gcc-go and ipfs version 0.10.0
Same here with arch linux: ./go/pkg/mod/github.com/ipfs/go-ipfs@v0.9.1/plugin/loader/load_unix.go:8:2: package plugin is not in GOROOT (/usr/src/plugin)
Edit for versions: go version go1.16.3 gccgo (GCC) 11.1.0 linux/amd64
I ran a quick search and found other projects where people have similar issues, e.g. https://github.com/golangci/golangci-lint/issues/1465 - however, I'm not quite sure how to fix this issue as I didn't stumble upon it so far.
Are you able to compile/install other Go projects in general? (E.g. IPFS itself) If that's not the case it might be an issue with your specific installation of Go or with the configuration of your GOPATH or maybe even GOROOT.
Are you able to compile/install other Go projects in general? (E.g. IPFS itself) If that's not the case it might be an issue with your specific installation of Go or with the configuration of your GOPATH or maybe even GOROOT.
Yes. As far as I know, this issue has only happened with this particular piece of software.
I've continued investigating into this issue and here's what I found that other people suggested:
go env -w GO111MODULE=off
auto
instead of on
or off
I believe that this might however be an issue with the specific installations, hence I can't really help much here. On my machine, as well as on some VPS that I've used, as well as on GitHub's CI it seems to be working just fine.
Maybe try using the official installation and see if that works for you?
Getting the following error when building.