mrusme / superhighway84

USENET-inspired, uncensorable, decentralized internet discussion system running on IPFS & OrbitDB
https://xn--gckvb8fzb.com/superhighway84
GNU General Public License v3.0
714 stars 23 forks source link

../../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) #5

Closed dbasinge closed 2 years ago

dbasinge commented 2 years ago
╰─ go build .              
../../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)

Getting the following error when building.

mrusme commented 2 years ago

What go version are you using? Not exactly sure where this comes from tbh, the paths seem strange as well.

dbasinge commented 2 years ago

Using Fedora 35, with gcc-go and ipfs version 0.10.0

krionical commented 2 years ago

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

mrusme commented 2 years ago

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.

krionical commented 2 years ago

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.

mrusme commented 2 years ago

I've continued investigating into this issue and here's what I found that other people suggested:

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?