You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ go run .
# github.com/lucas-clemente/quic-go/internal/qtls
../go/pkg/mod/github.com/lucas-clemente/[email protected]/internal/qtls/go120.go:5:13: cannot use "The version of quic-go you're using can't be built on Go 1.20 yet. For more details, please see https://github.com/lucas-clemente/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.20 yet. F...) as int value in variable declaration
在Go 1.19报错信息如下:
$ go run .
/usr/local/go/src/runtime/stkframe.go:15:6: stkframe redeclared in this block
/usr/local/go/src/runtime/runtime2.go:998:6: other declaration of stkframe
/usr/local/go/src/runtime/stkframe.go:262:5: methodValueCallFrameObjs redeclared in this block
/usr/local/go/src/runtime/stack.go:1362:5: other declaration of methodValueCallFrameObjs
/usr/local/go/src/runtime/stkframe.go:264:6: stkobjinit redeclared in this block
/usr/local/go/src/runtime/stack.go:1364:6: other declaration of stkobjinit
/usr/local/go/src/runtime/traceback.go:670:6: reflectMethodValue redeclared in this block
/usr/local/go/src/runtime/stkframe.go:65:6: other declaration of reflectMethodValue
/usr/local/go/src/runtime/unsafe.go:53:6: unsafeslice redeclared in this block
/usr/local/go/src/runtime/slice.go:127:6: other declaration of unsafeslice
/usr/local/go/src/runtime/unsafe.go:74:6: unsafeslice64 redeclared in this block
/usr/local/go/src/runtime/slice.go:142:6: other declaration of unsafeslice64
/usr/local/go/src/runtime/unsafe.go:82:6: unsafeslicecheckptr redeclared in this block
/usr/local/go/src/runtime/slice.go:150:6: other declaration of unsafeslicecheckptr
/usr/local/go/src/runtime/unsafe.go:92:6: panicunsafeslicelen redeclared in this block
/usr/local/go/src/runtime/slice.go:160:6: other declaration of panicunsafeslicelen
/usr/local/go/src/runtime/unsafe.go:96:6: panicunsafeslicenilptr redeclared in this block
/usr/local/go/src/runtime/slice.go:164:6: other declaration of panicunsafeslicenilptr
/usr/local/go/src/runtime/arena.go:157:26: span.isUserArenaChunk undefined (type *mspan has no field or method isUserArenaChunk)
/usr/local/go/src/runtime/arena.go:157:26: too many errors
Describe the bug
HTTP3提供的example代码 https://github.com/hertz-contrib/http3/blob/main/examples/quic-go/main.go
无法运行在Ubuntu Go 1.19及Go 1.22环境下,运行代码和仓库一致,即便配置了自己的TLS也无法运行
To Reproduce
在Go 1.22报错信息如下:
在Go 1.19报错信息如下:
Hertz version:
直接clone 仓库代码并运行,未更改go.mod,也无法正常运行
Hertz version:
Environment:
运行环境为Ubuntu 20 64位
另外,在windows环境下,
无法配置server.WithAltTransport(netpoll.NewTransporter),netpoll在windows下没有实现NewTransporter方法
The text was updated successfully, but these errors were encountered: