Closed chromer030 closed 1 year ago
Same issue on my side.
Same issue on MacOS.... I wonder why it fails if the modules are correct...
% go build -o tun2socks
package github.com/xjasonlyu/tun2socks/v2
imports github.com/xjasonlyu/tun2socks/v2/engine
imports github.com/xjasonlyu/tun2socks/v2/core
imports github.com/xjasonlyu/tun2socks/v2/core/adapter
imports gvisor.dev/gvisor/pkg/tcpip/stack
imports gvisor.dev/gvisor/pkg/atomicbitops
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 /Users/userx/go/pkg/mod/gvisor.dev/gvisor@v0.0.0-20220405222207-795f4f0139bb/pkg/gohacks
It looks like you need to install and build tun2socks with Go 1.18. This is due gvisor dependency.
But tun2socks is built with go 1.20 , by checkpointing to this commit
$ ./tun2socks-linux-amd64 --version
tun2socks-2.4.1
linux/amd64, go1.20, 6809e7f
No worries, I will fix it later.
I believe this issue has been solved: https://github.com/xjasonlyu/tun2socks/commit/6cfc25309e35d2c9873864a8b04fffa884a8b4e9.
Yes, now it's ok.
It's OK now , thanks.
Verify steps
Version
latest git
What OS are you seeing the problem on?
Linux
Description
Build failed after latest commit
Arch Linux Go : 1.20
CLI or Config
Logs