Skip to content

Commit 1bc94a2

Browse files
committed
github: Use golangci-lint v1.54.1 and adjust config file
Signed-off-by: Stefan Berger <[email protected]>
1 parent 9065f1d commit 1bc94a2

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
5656
- uses: golangci/golangci-lint-action@v3
5757
with:
58-
version: v1.52.2
58+
version: v1.54.1
5959
working-directory: src/github.com/containerd/imgcrypt
6060
args: --timeout 120s
6161

.golangci.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ run:
2020

2121
linters-settings:
2222
depguard:
23-
list-type: denylist
24-
include-go-root: true
25-
packages:
26-
# use "io" or "os" instead
27-
# https://go.dev/doc/go1.16#ioutil
28-
- io/ioutil
23+
rules:
24+
main:
25+
files:
26+
- $all
27+
deny:
28+
- pkg: "io/ioutil"

0 commit comments

Comments
 (0)