Skip to content

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

@jan-bar

Description

@jan-bar

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions