Skip to content

Commit 4b2f3ab

Browse files
Upgrade Golang and tooling to fix the linter (#971)
* Upgrade golang and tooling * upgrade go * how did the linter itself die * satisfy linter
1 parent 91dfcc0 commit 4b2f3ab

File tree

6 files changed

+7
-13
lines changed

6 files changed

+7
-13
lines changed

.github/workflows/go.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- name: Set up Go
1717
uses: actions/setup-go@v2
1818
with:
19-
go-version: ^1.18
19+
go-version: ^1.24
2020

2121
- name: Check out code
2222
uses: actions/checkout@v2

.github/workflows/golangci-lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
uses: actions/checkout@v2
1717
- name: Install golangci-lint
1818
run: |
19-
VERSION=1.62.0
19+
VERSION=1.64.8
2020
wget https://github.com/golangci/golangci-lint/releases/download/v${VERSION}/golangci-lint-${VERSION}-linux-amd64.tar.gz
2121
tar zxvf golangci-lint-${VERSION}-linux-amd64.tar.gz
2222
mv golangci-lint-${VERSION}-linux-amd64/golangci-lint .

v3/cmd/genTestCerts/go.mod

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
module github.com/zmap/zlint/v3/cmd/genTestCerts
22

3-
go 1.23.0
4-
5-
toolchain go1.23.6
3+
go 1.24.0
64

75
replace github.com/zmap/zlint/v3 => ../../
86

v3/cmd/gen_test_crl/go.mod

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
module github.com/zmap/zlint/v3/cmd/gen_test_crl
22

3-
go 1.23.0
4-
5-
toolchain go1.23.6
3+
go 1.24.0
64

75
replace github.com/zmap/zlint/v3 => ../../
86

v3/go.mod

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
module github.com/zmap/zlint/v3
22

3-
go 1.23.0
4-
5-
toolchain go1.23.6
3+
go 1.24.0
64

75
require (
86
github.com/kr/text v0.2.0 // indirect

v3/lint/configuration_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1108,7 +1108,7 @@ func TestConfigFromFile(t *testing.T) {
11081108
A *Test
11091109
B bool
11101110
}
1111-
f, err := os.CreateTemp("", "")
1111+
f, err := os.CreateTemp(t.TempDir(), "")
11121112
if err != nil {
11131113
t.Fatal(err)
11141114
}
@@ -1141,7 +1141,7 @@ B = true
11411141
}
11421142

11431143
func TestBadConfigFromFile(t *testing.T) {
1144-
f, err := os.CreateTemp("", "")
1144+
f, err := os.CreateTemp(t.TempDir(), "")
11451145
if err != nil {
11461146
t.Fatal(err)
11471147
}

0 commit comments

Comments
 (0)