nymtech / nym

Nym provides strong network-level privacy against sophisticated end-to-end attackers, and anonymous transactions using blinded, re-randomizable, decentralized credentials.
https://nymtech.net
1.27k stars 234 forks source link

[Build] [Issue] GOPATH problems #5042

Open zwillikon opened 3 hours ago

zwillikon commented 3 hours ago

I'm trying to build this PKGBUILD from ArchLinux but against git master sources.

Until a few years ago it was necessary to set fake $GOROOT and $GOPATH in every Go PKGBUILD. Now I've seemed to hit that issue again:

libwg.go:19:2: cannot find package "github.com/nymtech/nym-vpn-client/wireguard/libwg/container" in any of:
    /usr/lib/go/src/github.com/nymtech/nym-vpn-client/wireguard/libwg/container (from $GOROOT)
    ./src/github.com/nymtech/nym-vpn-client/wireguard/libwg/container (from $GOPATH)
libwg_default.go:24:2: cannot find package "github.com/nymtech/nym-vpn-client/wireguard/libwg/logging" in any of:
    /usr/lib/go/src/github.com/nymtech/nym-vpn-client/wireguard/libwg/logging (from $GOROOT)
    ./src/github.com/nymtech/nym-vpn-client/wireguard/libwg/logging (from $GOPATH)
libwg_default.go:20:2: cannot find package "golang.zx2c4.com/wireguard/conn" in any of:
    /usr/lib/go/src/golang.zx2c4.com/wireguard/conn (from $GOROOT)
    ./src/golang.zx2c4.com/wireguard/conn (from $GOPATH)
libwg.go:20:2: cannot find package "golang.zx2c4.com/wireguard/device" in any of:
    /usr/lib/go/src/golang.zx2c4.com/wireguard/device (from $GOROOT)
    ./src/golang.zx2c4.com/wireguard/device (from $GOPATH)
libwg_default.go:22:2: cannot find package "golang.zx2c4.com/wireguard/tun" in any of:
    /usr/lib/go/src/golang.zx2c4.com/wireguard/tun (from $GOROOT)
    ./src/golang.zx2c4.com/wireguard/tun (from $GOPATH)

Since I'm building from scratch I can't yet have any installed package under /usr/lib/go/src/github.com/nymtech/nym-vpn-client/wireguard/libwg/container (from $GOROOT)

github-actions[bot] commented 3 hours ago

Thank you for raising this issue