Skip to content

Commit

Permalink
Use Go 1.17 for golangci linting and update golangci/golangci-lint-ac…
Browse files Browse the repository at this point in the history
…tion

Go 1.18 is not supported by golangci-lint yet since generics are not
supported.

Signed-off-by: Ethan Lowman <[email protected]>
  • Loading branch information
ethan-lowman-dd committed Aug 24, 2022
1 parent fd8ac04 commit 35ef54e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,6 @@ jobs:
- uses: actions/setup-go@f6164bd8c8acb4a71fb2791a8b6c4024ff038dab
- uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579
- name: golangci-lint
uses: golangci/golangci-lint-action@5c56cd6c9dc07901af25baab6f2b0d9f3b7c3018
uses: golangci/golangci-lint-action@537aa1903e5d359d0b27dbc19ddd22c5087f3fbc
with:
version: v1.45.2
version: v1.49.0
6 changes: 6 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
run:
# Lint using Go 1.17, since some linters are disabled by default for Go 1.18
# until generics are supported.
# See https://github.com/golangci/golangci-lint/issues/2649
go: '1.17'

linters:
disable-all: true
enable:
Expand Down

0 comments on commit 35ef54e

Please sign in to comment.