Merge pull request #5897 from kzys/upgrade-golangci-lint
script: update golangci-lint from v1.38.0 and v1.36.0 to v1.42.0
This commit is contained in:
commit
736222dd87
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@ -31,7 +31,7 @@ jobs:
|
|||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: golangci/golangci-lint-action@v2
|
- uses: golangci/golangci-lint-action@v2
|
||||||
with:
|
with:
|
||||||
version: v1.36.0
|
version: v1.42.0
|
||||||
args: --timeout=5m
|
args: --timeout=5m
|
||||||
skip-go-installation: true
|
skip-go-installation: true
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@ linters:
|
|||||||
- unconvert
|
- unconvert
|
||||||
- gofmt
|
- gofmt
|
||||||
- goimports
|
- goimports
|
||||||
- golint
|
- revive
|
||||||
- ineffassign
|
- ineffassign
|
||||||
- vet
|
- vet
|
||||||
- unused
|
- unused
|
||||||
|
@ -121,7 +121,7 @@ func (c *criService) RunPodSandbox(ctx context.Context, r *runtime.RunPodSandbox
|
|||||||
// handle. NetNSPath in sandbox metadata and NetNS is non empty only for non host network
|
// handle. NetNSPath in sandbox metadata and NetNS is non empty only for non host network
|
||||||
// namespaces. If the pod is in host network namespace then both are empty and should not
|
// namespaces. If the pod is in host network namespace then both are empty and should not
|
||||||
// be used.
|
// be used.
|
||||||
var netnsMountDir string = "/var/run/netns"
|
var netnsMountDir = "/var/run/netns"
|
||||||
if c.config.NetNSMountsUnderStateDir {
|
if c.config.NetNSMountsUnderStateDir {
|
||||||
netnsMountDir = filepath.Join(c.config.StateDir, "netns")
|
netnsMountDir = filepath.Join(c.config.StateDir, "netns")
|
||||||
}
|
}
|
||||||
|
@ -58,7 +58,7 @@ func openPath(path string) (windows.Handle, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// GetFinalPathNameByHandle flags.
|
// GetFinalPathNameByHandle flags.
|
||||||
//nolint:golint
|
//nolint:revive // SNAKE_CASE is not idiomatic in Go, but aligned with Win32 API.
|
||||||
const (
|
const (
|
||||||
cFILE_NAME_OPENED = 0x8
|
cFILE_NAME_OPENED = 0x8
|
||||||
|
|
||||||
|
@ -34,4 +34,4 @@ GO111MODULE=off go get -d github.com/gogo/googleapis || true
|
|||||||
GO111MODULE=off go get -d github.com/gogo/protobuf || true
|
GO111MODULE=off go get -d github.com/gogo/protobuf || true
|
||||||
|
|
||||||
GO111MODULE=on go get github.com/cpuguy83/go-md2man/v2@v2.0.1
|
GO111MODULE=on go get github.com/cpuguy83/go-md2man/v2@v2.0.1
|
||||||
GO111MODULE=on go get github.com/golangci/golangci-lint/cmd/golangci-lint@v1.38.0
|
GO111MODULE=on go get github.com/golangci/golangci-lint/cmd/golangci-lint@v1.42.0
|
||||||
|
@ -18,7 +18,7 @@ package testsuite
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
//nolint:golint
|
//nolint:revive // go-digest needs the blank import. See https://github.com/opencontainers/go-digest#usage.
|
||||||
_ "crypto/sha256"
|
_ "crypto/sha256"
|
||||||
"fmt"
|
"fmt"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
|
Loading…
Reference in New Issue
Block a user