From aa141fde9c8076fa9d219d82fc12000ac99a8ea2 Mon Sep 17 00:00:00 2001 From: Ivan Milchev Date: Wed, 18 Sep 2024 09:48:25 +0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=B9=20update=20CI=20go=20and=20linter?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ivan Milchev --- .github/env | 2 +- .github/workflows/lint.yaml | 2 +- cmd/mondoo-operator/operator/cmd.go | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/env b/.github/env index 1fdd0874..dce937c0 100644 --- a/.github/env +++ b/.github/env @@ -1,4 +1,4 @@ -golang-version=1.22.2 +golang-version=1.23.1 operator-sdk-version=v1.33.0 MONDOO_ORG_MRN=//captain.api.mondoo.app/organizations/mondoo-operator-testing MONDOO_GQL_ENDPOINT=https://api.mondoo.com/query diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index eb66ba34..1d753c16 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -27,7 +27,7 @@ jobs: - name: golangci-lint uses: golangci/golangci-lint-action@v6 with: - version: v1.54 + version: latest args: --timeout=20m0s license-check: diff --git a/cmd/mondoo-operator/operator/cmd.go b/cmd/mondoo-operator/operator/cmd.go index 7bce81b8..ce2758cb 100644 --- a/cmd/mondoo-operator/operator/cmd.go +++ b/cmd/mondoo-operator/operator/cmd.go @@ -4,6 +4,7 @@ package operator import ( + "errors" "fmt" "github.com/go-logr/logr" @@ -103,7 +104,7 @@ func init() { if !passed { msg := "required API(s) not found" setupLog.Info(msg) - return fmt.Errorf(msg) + return errors.New(msg) } isOpenShift, err := k8s.IsOpenshift()