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:
committed by
GitHub
parent
3b84ecd27b
commit
b985ff5775
@@ -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)
|
||||
}
|
||||
|
||||
@@ -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 {
|
||||
|
||||
1
tests/thirdparty/config_test.go
vendored
1
tests/thirdparty/config_test.go
vendored
@@ -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 {
|
||||
|
||||
2
tests/thirdparty/make_workflow.go
vendored
2
tests/thirdparty/make_workflow.go
vendored
@@ -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.
|
||||
|
||||
1
tests/thirdparty/packages_test.go
vendored
1
tests/thirdparty/packages_test.go
vendored
@@ -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())
|
||||
|
||||
4
tests/thirdparty/suite.json
vendored
4
tests/thirdparty/suite.json
vendored
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user