ci: bump to go 1.23 (#453)

Upgrade to Go 1.23.

Upgrade also requires bumping `golangci-lint` to v1.62.2, and upgrading
third-party test versions for some failing cases.
This commit is contained in:
Michael McLoughlin
2024-12-22 19:01:48 -05:00
committed by GitHub
parent 3b84ecd27b
commit b985ff5775
31 changed files with 88 additions and 100 deletions

View File

@@ -21,7 +21,7 @@ func TestZeroing(t *testing.T) {
var got [8]uint64
Zeroing(&got)
for i := 0; i < 8; i++ {
for i := range 8 {
if got[i] != expect {
t.Errorf("got[%d] = %d; expect %d", i, got[i], expect)
}

View File

@@ -7,7 +7,7 @@ import (
//go:generate go run asm.go -out issue387.s -stubs stub.go
func TestFloat32(t *testing.T) {
for i := 0; i < 10; i++ {
for i := range 10 {
got := Float32(i)
expect := float32(i)
if got != expect {
@@ -17,7 +17,7 @@ func TestFloat32(t *testing.T) {
}
func TestFloat64(t *testing.T) {
for i := 0; i < 10; i++ {
for i := range 10 {
got := Float64(i)
expect := float64(i)
if got != expect {

View File

@@ -94,7 +94,6 @@ func TestValidateErrors(t *testing.T) {
},
}
for _, c := range cases {
c := c // scopelint
t.Run(c.Name, func(t *testing.T) {
err := c.Item.Validate()
if err == nil {

View File

@@ -101,7 +101,7 @@ func GenerateWorkflow(s *thirdparty.Suite) ([]byte, error) {
g.Linef("- name: Install Go")
g.Linef(" uses: actions/setup-go@c4a742cab115ed795e34d4513e2cf7d472deb55f # v3.3.1")
g.Linef(" with:")
g.Linef(" go-version: 1.22.x")
g.Linef(" go-version: 1.23.x")
g.Linef(" check-latest: true")
// Checkout avo.

View File

@@ -34,7 +34,6 @@ func TestPackages(t *testing.T) {
}
for _, tst := range s.Projects.Tests() {
tst := tst // scopelint
t.Run(tst.ID(), func(t *testing.T) {
if tst.Project.Skip() {
t.Skipf("skip: %s", tst.Project.Reason())

View File

@@ -649,7 +649,7 @@
"stars": 3031
},
"default_branch": "master",
"version": "089bfa5675191fd96a44247682f76ebca03d7916",
"version": "v0.24.0",
"packages": [
{
"pkg": "curve25519",
@@ -761,7 +761,7 @@
"stars": 124357
},
"default_branch": "master",
"version": "go1.20.1",
"version": "go1.23.4",
"packages": [
{
"pkg": "src/crypto/internal/bigmod",