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 it be compiled with go1.21 version supported? #2644

Closed
jan-bar opened this issue Aug 9, 2023 · 8 comments
Closed

Can it be compiled with go1.21 version supported? #2644

jan-bar opened this issue Aug 9, 2023 · 8 comments

Comments

@jan-bar
Copy link

jan-bar commented Aug 9, 2023

What version of V2Ray are you using?

I compile my code using the version:github.com/v2fly/v2ray-core/v5 v5.7.0

What's your scenario of using V2Ray?

use v2ray code in my project

What problems have you encountered?

The go1.21 version is released, I want to use this version to compile my project, but the following error is prompted

# github.com/quic-go/quic-go/internal/qtls
pkg\mod\github.com\quic-go\quic-go@v0.33.0\internal\qtls\go121.go:5:13: cannot use "The version of quic-go you're using can't be built on Go 1.21 yet. For more details, please see https://github.com/
quic-go/quic-go/wiki/quic-go-and-Go-versions." (untyped string constant "The version of quic-go you're using can't be built on Go 1.21 yet. F...) as int value in variable declaration

What's your expectation?

The v2ray project can be compiled using go1.21 version

Description of related libraries:https://github.com/quic-go/quic-go/wiki/quic-go-and-Go-versions

I found that the latest version of the library already supports go1.21, and I hope v2ray can follow up
https://github.com/quic-go/quic-go/blob/v0.37.3/internal/qtls/go121.go

@AkinoKaede
Copy link
Contributor

We are waiting the Go 1.21 support of quic-go .

@AkinoKaede
Copy link
Contributor

Please wait for the next release.

@jan-bar
Copy link
Author

jan-bar commented Aug 11, 2023

Please wait for the next release.

looking forward to the new version, thank you very much

@stefanb
Copy link

stefanb commented Aug 13, 2023

quic-go 0.37.x already support Go 1.20 and 1.21. See https://github.com/quic-go/quic-go/releases

Judging by the diff v5.7.0...master it just needs a new release.

@jan-bar
Copy link
Author

jan-bar commented Aug 13, 2023

@stefanb Thank you very much, my own project also tested like this without any problem. Still looking forward to the release of the latest version of v2ray-core

@seyedmmousavi
Copy link

the home-brew can't install v2ray because of this error and someone like me is stopped.

@AkinoKaede
Copy link
Contributor

v5.9.0 had been released.

@chenrui333
Copy link

homebrew side is good with the new release, Homebrew/homebrew-core#152400

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

5 participants