Closed pietro-sillano closed 5 months ago
Hi, I replied to you in the linux client repo. Is your issue resolved after deleting the cache?
No, it does not change anything..same errors
what is your go version? go --version
go version
go1.22.0 linux/amd64
what if you clone this repo and build from source?
How I build it? simply with make
?
i get this error
make -C exports
make[1]: Entering directory '/home/pietro/Desktop/eduvpn-common/exports'
CGO_ENABLED=1 go build -o lib/linux/amd64/libeduvpn_common-2.0.0.so -buildmode=c-shared .
exports.go:63:2: cannot find package "github.com/eduvpn/eduvpn-common/client" in any of:
/usr/lib/go/src/github.com/eduvpn/eduvpn-common/client (from $GOROOT)
/home/pietro/go/src/github.com/eduvpn/eduvpn-common/client (from $GOPATH)
exports.go:64:2: cannot find package "github.com/eduvpn/eduvpn-common/i18nerr" in any of:
/usr/lib/go/src/github.com/eduvpn/eduvpn-common/i18nerr (from $GOROOT)
/home/pietro/go/src/github.com/eduvpn/eduvpn-common/i18nerr (from $GOPATH)
exports.go:65:2: cannot find package "github.com/eduvpn/eduvpn-common/internal/log" in any of:
/usr/lib/go/src/github.com/eduvpn/eduvpn-common/internal/log (from $GOROOT)
/home/pietro/go/src/github.com/eduvpn/eduvpn-common/internal/log (from $GOPATH)
exports.go:66:2: cannot find package "github.com/eduvpn/eduvpn-common/types/cookie" in any of:
/usr/lib/go/src/github.com/eduvpn/eduvpn-common/types/cookie (from $GOROOT)
/home/pietro/go/src/github.com/eduvpn/eduvpn-common/types/cookie (from $GOPATH)
exports.go:67:2: cannot find package "github.com/eduvpn/eduvpn-common/types/error" in any of:
/usr/lib/go/src/github.com/eduvpn/eduvpn-common/types/error (from $GOROOT)
/home/pietro/go/src/github.com/eduvpn/eduvpn-common/types/error (from $GOPATH)
exports.go:68:2: cannot find package "github.com/eduvpn/eduvpn-common/types/server" in any of:
/usr/lib/go/src/github.com/eduvpn/eduvpn-common/types/server (from $GOROOT)
/home/pietro/go/src/github.com/eduvpn/eduvpn-common/types/server (from $GOPATH)
make[1]: *** [Makefile:20: lib/linux/amd64/libeduvpn_common-2.0.0.so] Error 1
make[1]: Leaving directory '/home/pietro/Desktop/eduvpn-common/exports'
make: *** [Makefile:4: build] Error 2
Ah! please give me the output of
go env
it seems like GO111MODULE is off for you?
try to build with
GO111MODULE=on make
it seems to work now
GO111MODULE=on make
make -C exports
make[1]: Entering directory '/home/pietro/Desktop/eduvpn-common/exports'
CGO_ENABLED=1 go build -o lib/linux/amd64/libeduvpn_common-2.0.0.so -buildmode=c-shared .
go: downloading golang.org/x/text v0.14.0
go: downloading codeberg.org/eduVPN/proxyguard v0.0.0-20240227170952-f81a10eebf39
go: downloading github.com/jwijenbergh/eduoauth-go v0.0.0-20240228154608-9a9ea667cfea
go: downloading golang.zx2c4.com/wireguard/wgctrl v0.0.0-20230429144221-925a1e7659e6
go: downloading golang.org/x/net v0.21.0
go: downloading github.com/jedisct1/go-minisign v0.0.0-20230811132847-661be99b8267
go: downloading golang.org/x/crypto v0.20.0
go: downloading golang.org/x/sys v0.17.0
mv lib/linux/amd64/libeduvpn_common-2.0.0.h lib/linux/amd64/eduvpn_common.h || true # Normalize header name
make[1]: Leaving directory '/home/pietro/Desktop/eduvpn-common/exports'
did you disable go modules? how did you install go?
Note: Now you're building the main branch, you want to build the latest release https://github.com/eduvpn/eduvpn-common/releases/tag/1.2.0
closing due to inactivity
I am not sure if you also have encountered my same issue but I am getting an error trying to update with yay on ArchLinux: