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 <ethan.lowman@datadoghq.com>
  • Loading branch information
ethan-lowman-dd committed Aug 24, 2022
1 parent ebbc6b8 commit 88b6bc1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Expand Up @@ -63,5 +63,5 @@ jobs:
- name: golangci-lint
uses: golangci/golangci-lint-action@537aa1903e5d359d0b27dbc19ddd22c5087f3fbc
with:
version: v1.45.2
version: v1.49.0
args: --timeout 3m
6 changes: 6 additions & 0 deletions .golangci.yml
@@ -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 88b6bc1

Please sign in to comment.