go-sql-driver / mysql

Go MySQL Driver is a MySQL driver for Go's (golang) database/sql package
https://pkg.go.dev/github.com/go-sql-driver/mysql
Mozilla Public License 2.0
14.45k stars 2.3k forks source link

go-sql-driver , filippo.io , depend report Error #1621

Closed DoNotLeaveMe closed 4 weeks ago

DoNotLeaveMe commented 1 month ago

There was no problem on before ;but today I get driver again;there is called 'filippo.io' report an error; and my go version is 1.6+;

I'm just a noob,I can't solve this problem;

please help!

cmd

C:\Users\Administrator>go get -u github.com/go-sql-driver/mysql filippo.io/edwards25519 go\pkg\mod\filippo.io\edwards25519@v1.1.0\scalar.go:166:53: cannot convert x (type []byte) to type *[32]byte note: module requires Go 1.20

methane commented 1 month ago

Use latest Go

arnehormann commented 4 weeks ago

Go 1.20 added support for casting slices to arrays. Earlier Go versions do not support it. This error is in cryptographic code, not in the driver itself. We cannot do anything about it. But as methane said, please use a recent Go version. They are backwards compatible and get better and faster all the time. There's no disadvantage.