Skip to content

Commit 8b5df7d

Browse files
committed
update golangci-lint to v1.49.0
Also remove "nolint" comments for deadcode, which is deprecated, and removed from the defaults. Signed-off-by: Sebastiaan van Stijn <[email protected]>
1 parent f9c80be commit 8b5df7d

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
- uses: actions/checkout@v2
3636
- uses: golangci/golangci-lint-action@v3
3737
with:
38-
version: v1.48.0
38+
version: v1.49.0
3939
skip-cache: true
4040
args: --timeout=8m
4141

oci/spec_opts.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ func setCPU(s *Spec) {
103103
}
104104
}
105105

106-
//nolint:deadcode,nolintlint,unused // not used on all platforms
106+
//nolint:nolintlint,unused // not used on all platforms
107107
func setCPUWindows(s *Spec) {
108108
setResourcesWindows(s)
109109
if s.Windows != nil {

oci/utils_unix.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ func getDevices(path, containerPath string) ([]specs.LinuxDevice, error) {
127127

128128
// TODO consider adding these consts to the OCI runtime-spec.
129129
const (
130-
wildcardDevice = "a" //nolint:deadcode,nolintlint,unused,varcheck // currently unused, but should be included when upstreaming to OCI runtime-spec.
130+
wildcardDevice = "a" //nolint:nolintlint,unused,varcheck // currently unused, but should be included when upstreaming to OCI runtime-spec.
131131
blockDevice = "b"
132132
charDevice = "c" // or "u"
133133
fifoDevice = "p"

pkg/progress/escape.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@ package progress
1919
const (
2020
escape = "\x1b"
2121
reset = escape + "[0m"
22-
red = escape + "[31m" //nolint:deadcode,nolintlint,unused,varcheck
22+
red = escape + "[31m" //nolint:nolintlint,unused,varcheck
2323
green = escape + "[32m"
2424
)

script/setup/install-dev-tools

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ set -eu -o pipefail
2424
go install github.com/containerd/[email protected]
2525
go install github.com/containerd/protobuild/cmd/[email protected]
2626
go install github.com/cpuguy83/go-md2man/[email protected]
27-
go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.48.0
27+
go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.49.0
2828
go install google.golang.org/protobuf/cmd/[email protected]
2929
go install google.golang.org/grpc/cmd/[email protected]
3030
go install github.com/containerd/ttrpc/cmd/protoc-gen-go-ttrpc@944ef4a40df3446714a823207972b7d9858ffac5

0 commit comments

Comments
 (0)