Skip to content

Commit 94ce801

Browse files
authored
chore: Bump go to 1.24 (#162)
* chore: Bump go to 1.24 * doc: Fix pull request template * fix: Linter warnings
1 parent 6004901 commit 94ce801

24 files changed

+647
-791
lines changed

.github/PULL_REQUEST_TEMPLATE

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
_Write a short description of what this change is for._
44

5-
## JIRA Issue
5+
## Github Issue
66

7-
_If any, add a JIRA ticket number._
7+
_If any, add a Github issue number._
88

99
## Possible failures/side-effects
1010

.github/workflows/codeql-analysis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ jobs:
3333
fail-fast: true
3434
matrix:
3535
language: [ 'go' ]
36-
os: [ 'ubuntu-22.04' ]
37-
go-version: [1.23.x]
36+
os: [ 'ubuntu-24.04' ]
37+
go-version: [1.24.x]
3838
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
3939
# Learn more about CodeQL language support at https://git.io/codeql-language-support
4040

.github/workflows/go.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ jobs:
4040
fail-fast: false
4141
max-parallel: 3
4242
matrix:
43-
os: [ 'ubuntu-22.04' ]
44-
go-version: [1.23.x]
43+
os: [ 'ubuntu-24.04' ]
44+
go-version: [1.24.x]
4545
runs-on: ${{ matrix.os }}
4646
name: Build
4747
steps:
@@ -87,8 +87,8 @@ jobs:
8787
fail-fast: false
8888
max-parallel: 2
8989
matrix:
90-
os: [ 'ubuntu-22.04' ]
91-
go-version: [1.23.x]
90+
os: [ 'ubuntu-24.04' ]
91+
go-version: [1.24.x]
9292
runs-on: ${{ matrix.os }}
9393
name: Run Tests
9494
steps:
@@ -134,8 +134,8 @@ jobs:
134134
fail-fast: false
135135
max-parallel: 2
136136
matrix:
137-
os: [ 'ubuntu-22.04' ]
138-
go-version: [1.23.x]
137+
os: [ 'ubuntu-24.04' ]
138+
go-version: [1.24.x]
139139
runs-on: ${{ matrix.os }}
140140
name: Run linters
141141
steps:
@@ -186,8 +186,8 @@ jobs:
186186
fail-fast: true
187187
max-parallel: 1
188188
matrix:
189-
os: [ 'ubuntu-22.04' ]
190-
go-version: [1.23.x]
189+
os: [ 'ubuntu-24.04' ]
190+
go-version: [1.24.x]
191191
runs-on: ${{ matrix.os }}
192192
name: Quality reports
193193
steps:

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ jobs:
1313
fail-fast: true
1414
max-parallel: 1
1515
matrix:
16-
os: [ 'ubuntu-22.04' ]
17-
go-version: [1.23.x]
16+
os: [ 'ubuntu-24.04' ]
17+
go-version: [1.24.x]
1818
runs-on: ${{ matrix.os }}
1919
name: Release
2020
steps:

.golangci.pipe.yml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
linters:
22
disable-all: true
33
enable:
4+
- govet
45
- errcheck
56
- gofmt
67
- revive
78
- goimports
9+
- unused
10+
- gosimple
811

912
linters-settings:
1013
errcheck:
@@ -28,6 +31,8 @@ linters-settings:
2831
arguments: [ [ "call-chain", "loop", "method-call", "recover", "return" ] ]
2932

3033
issues:
34+
# make issues output unique by line, default is true
35+
uniq-by-line: true
3136
exclude-use-default: false
3237
exclude:
3338
# for "public interface + private struct implementation" cases only!
@@ -97,26 +102,27 @@ issues:
97102
run:
98103
issues-exit-code: 1
99104
tests: true
100-
skip-dirs:
105+
exclude-dirs:
101106
- vendor/
102-
skip-files:
107+
exclude-files:
103108
- \.pb\.go$
104109

105110
# output configuration options
106111
output:
107112
# colored-line-number|line-number|json|tab|checkstyle|code-climate|junit-xml|github-actions
108113
# default is "colored-line-number"
109-
format: github-actions
114+
formats:
115+
- format: colored-line-number
116+
path: stderr
117+
- format: checkstyle
118+
path: linters-report.xml
110119

111120
# print lines of code with issue, default is true
112121
print-issued-lines: true
113122

114123
# print linter name in the end of issue text, default is true
115124
print-linter-name: true
116125

117-
# make issues output unique by line, default is true
118-
uniq-by-line: true
119-
120126
# add a prefix to the output file references; default is no prefix
121127
path-prefix: ""
122128

0 commit comments

Comments
 (0)