Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not build anymore (gVisor API changes) #18

Open
hegdenischay opened this issue Mar 2, 2024 · 1 comment
Open

Does not build anymore (gVisor API changes) #18

hegdenischay opened this issue Mar 2, 2024 · 1 comment

Comments

@hegdenischay
Copy link

gVisor has changed its API, and the program doesn't build anymore:

ubuntu@server:~/wirez$ go build
package github.com/v-byte-cpu/wirez
        imports github.com/v-byte-cpu/wirez/command
        imports github.com/v-byte-cpu/wirez/pkg/connect
        imports gvisor.dev/gvisor/pkg/tcpip
        imports gvisor.dev/gvisor/pkg/atomicbitops
        imports gvisor.dev/gvisor/pkg/cpuid
        imports gvisor.dev/gvisor/pkg/state
        imports gvisor.dev/gvisor/pkg/state/wire
        imports gvisor.dev/gvisor/pkg/gohacks: build constraints exclude all Go files in /home/ubuntu/go/pkg/mod/gvisor.dev/[email protected]/pkg/gohacks

Used go version: go version go1.22.0 linux/arm64

Attempting to fix it by upgrading gVisor also does not work:

ubuntu@server:~/wirez$ GO111MODULE=on go get gvisor.dev/gvisor@go
go: added gvisor.dev/gvisor v0.0.0-20240301005136-96d748d5c7c5
ubuntu@server:~/wirez$ go build
# github.com/v-byte-cpu/wirez/pkg/connect
pkg/connect/network_stack.go:96:47: cannot convert ipNet.IP (variable of type net.IP) to type tcpip.Address
pkg/connect/network_stack.go:96:76: cannot convert ipNet.Mask (variable of type net.IPMask) to type tcpip.AddressMask
pkg/connect/network_stack.go:148:57: too many arguments in call to gonet.NewUDPConn
        have (*stack.Stack, *waiter.Queue, tcpip.Endpoint)
        want (*waiter.Queue, tcpip.Endpoint)
@ghost18881
Copy link

@hegdenischay build using golang 1.20

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants