Skip to content

Commit de03f7b

Browse files
authored
Update workflow and tools to use Go 1.23 and 1.22 (#3242)
1 parent 280d327 commit de03f7b

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
shell: bash
2525
strategy:
2626
matrix:
27-
go-version: [1.x, 1.21.x]
27+
go-version: [1.x, 1.22.x]
2828
platform: [ubuntu-latest]
2929
include:
3030
# include windows, but only with the latest Go version, since there

.golangci.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ linters-settings:
2323
# performance issue: see https://github.com/golangci/golangci-lint/issues/4039
2424
# and https://github.com/securego/gosec/issues/1007
2525
- G602
26+
# int(os.Stdin.Fd())
27+
- G115
2628
issues:
2729
exclude-use-default: false
2830
exclude-rules:
@@ -43,9 +45,9 @@ issues:
4345
text: 'G505: Blocklisted import crypto/sha1: weak cryptographic primitive'
4446

4547
# This is adapted from golangci-lint's default exclusions. It disables linting for error checks on
46-
# os.RemoveAll and any function ending in "Close".
48+
# os.RemoveAll, fmt.Fprint*, fmt.Scanf, and any function ending in "Close".
4749
- linters: [ errcheck ]
48-
text: Error return value of .(.*Close|os\.Remove(All)?). is not checked
50+
text: Error return value of .(.*Close|fmt\.Fprint.*|fmt\.Scanf|os\.Remove(All)?). is not checked
4951

5052
# We don't care about file inclusion via variable in examples or internal tools.
5153
- linters: [ gosec ]

script/lint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
set -e
77

8-
GOLANGCI_LINT_VERSION="1.54.2"
8+
GOLANGCI_LINT_VERSION="1.60.2"
99

1010
CDPATH="" cd -- "$(dirname -- "$0")/.."
1111
BIN="$(pwd -P)"/bin

0 commit comments

Comments
 (0)