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

can not compile 0n go 1.18 #40

Open
spacexnasa opened this issue May 4, 2022 · 2 comments
Open

can not compile 0n go 1.18 #40

spacexnasa opened this issue May 4, 2022 · 2 comments

Comments

@spacexnasa
Copy link

go build -ldflags="-X=main.MAINVER=${pkgver} -linkmode=external"
go: downloading github.com/v2fly/v2ray-core/v4 v4.43.0
go: downloading golang.org/x/net v0.0.0-20210903162142-ad29c8ab022f
go: downloading github.com/lucas-clemente/quic-go v0.23.0
go: downloading golang.org/x/crypto v0.0.0-20210817164053-32db794688a5
go: downloading github.com/jhump/protoreflect v1.9.0
go: downloading github.com/pires/go-proxyproto v0.6.1
go: downloading golang.org/x/sys v0.0.0-20210903071746-97244b99971b
go: downloading github.com/v2fly/BrowserBridge v0.0.0-20210430233438-0570fc1d7d08
go: downloading google.golang.org/grpc v1.41.0
go: downloading go.starlark.net v0.0.0-20210901212718-87f333178d59
go: downloading inet.af/netaddr v0.0.0-20210903134321-85fa6c94624e
go: downloading github.com/v2fly/VSign v0.0.0-20201108000810-e2adc24bf848
go: downloading github.com/seiflotfy/cuckoofilter v0.0.0-20201222105146-bc6005554a0c
go: downloading github.com/v2fly/ss-bloomring v0.0.0-20210312155135-28617310f63e
go: downloading go4.org/intern v0.0.0-20210108033219-3eb7198706b2
go: downloading google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013
go: downloading github.com/lunixbochs/struc v0.0.0-20200707160740-784aaebc1d40
go: downloading go4.org v0.0.0-20180809161055-417644f6feb5
go: downloading github.com/dgryski/go-metro v0.0.0-20200812162917-85c65e2d0165
go: downloading github.com/ebfe/bcrypt_pbkdf v0.0.0-20140212075826-3c8d2dcb253a
go: downloading go4.org/unsafe/assume-no-moving-gc v0.0.0-20201222180813-1025295fd063

github.com/lucas-clemente/quic-go/internal/qtls

../../../../../.go/pkg/mod/github.com/lucas-clemente/[email protected]/internal/qtls/go118.go:5:13: cannot use "quic-go doesn't build on Go 1.18 yet." (untyped string constant) as int value in variable declaration

@mxue12138
Copy link

我刚才想用也发现了这个问题,是依赖版本问题,执行一下下面的命令升级一下包
go get github.com/lucas-clemente/[email protected]
然后
go get
接下来就可以继续操作了。

需要注意的是,运行的话需要添加环境变量,因为原来旧版的代码不适用于新版golang的内存回收逻辑,加上这个忽略掉
ASSUME_NO_MOVING_GC_UNSAFE_RISK_IT_WITH=go1.18

@lahirubro123
Copy link

what is the purpose of this vmessping ?

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

3 participants