bytedance / sonic

A blazingly fast JSON serializing & deserializing library
Apache License 2.0
6.71k stars 333 forks source link

mistake warnging message: WARNING: sonic only supports Go1.16~1.20 && CPU amd64, but your environment is not suitable #549

Closed qshuai closed 9 months ago

qshuai commented 10 months ago

从sonic v1.10.0版本已经支持golang 1.21了,但是程序运行时仍然报该warning,请修正。以下是我找到的代码位置:

ast/api_compat.go:31:    println("WARNING: sonic only supports Go1.16~1.20 && CPU amd64, but your environment is not suitable")
decoder/decoder_compat.go:33:     println("WARNING: sonic only supports Go1.16~1.20 && CPU amd64, but your environment is not suitable")
encoder/encoder_compat.go:31:    println("WARNING: sonic only supports Go1.16~1.20 && CPU amd64, but your environment is not suitable")
AsterDY commented 10 months ago

支持的环境不会触发的。1.20-》1.21我改一下

tvojacek commented 9 months ago

Any update?

AsterDY commented 9 months ago

fixed by #563