v2fly / v2ray-core

A platform for building proxies to bypass network restrictions.
https://v2fly.org
MIT License
29.11k stars 4.6k forks source link

Unable to update go.mod file when compiling a project with source code referenced from v5.18.0 #3148

Open jan-bar opened 3 weeks ago

jan-bar commented 3 weeks ago

As shown in the figure below

image

dyhkwong commented 3 weeks ago

replace these two like this in the go.mod of your project https://github.com/v2fly/v2ray-core/blob/8b36010fc2b9786e871762146506df42dffb16bb/go.mod#L93-L95

P.S. For a go 1.23 go.mod, quic-go (and the newly introduced apernet quic-go fork) currently needs to compile with asynctimerchan=1.