Merge pull request #23978 from Luap99/golangci-lint-1.61

update golangci-lint to 1.61.0
This commit is contained in:
openshift-merge-bot[bot] 2024-09-17 12:57:32 +00:00 committed by GitHub
commit 9781a268a2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 4 additions and 4 deletions

View File

@ -62,7 +62,7 @@ BUILDTAGS += ${EXTRA_BUILDTAGS}
# N/B: This value is managed by Renovate, manual changes are
# possible, as long as they don't disturb the formatting
# (i.e. DO NOT ADD A 'v' prefix!)
GOLANGCI_LINT_VERSION := 1.60.3
GOLANGCI_LINT_VERSION := 1.61.0
PYTHON ?= $(shell command -v python3 python|head -n1)
PKG_MANAGER ?= $(shell command -v dnf yum|head -n1)
# ~/.local/bin is not in PATH on all systems

View File

@ -30,7 +30,7 @@ var _ = Describe("Podman networks", func() {
bt.RestoreImagesFromCache()
s = bt.startAPIService()
time.Sleep(1 * time.Second)
connText, err = bindings.NewConnection(context.Background(), bt.sock)
connText, err = bindings.NewConnection(context.Background(), bt.sock) //nolint:fatcontext
Expect(err).ToNot(HaveOccurred())
_, err = network.Prune(connText, &network.PruneOptions{})
Expect(err).ToNot(HaveOccurred())

View File

@ -26,7 +26,7 @@ var _ = Describe("Podman secrets", func() {
bt.RestoreImagesFromCache()
s = bt.startAPIService()
time.Sleep(1 * time.Second)
connText, err = bindings.NewConnection(context.Background(), bt.sock)
connText, err = bindings.NewConnection(context.Background(), bt.sock) //nolint:fatcontext
Expect(err).ToNot(HaveOccurred())
})

View File

@ -30,7 +30,7 @@ var _ = Describe("Podman volumes", func() {
bt.RestoreImagesFromCache()
s = bt.startAPIService()
time.Sleep(1 * time.Second)
connText, err = bindings.NewConnection(context.Background(), bt.sock)
connText, err = bindings.NewConnection(context.Background(), bt.sock) //nolint:fatcontext
Expect(err).ToNot(HaveOccurred())
})