From c53f92501b81dbf92d8ceffa8574366431032003 Mon Sep 17 00:00:00 2001 From: ArchitectBot <61872893+architectbot@users.noreply.github.com> Date: Mon, 26 Aug 2024 15:25:55 +0200 Subject: [PATCH] Align files (#535) Co-authored-by: github-actions --- .github/workflows/pre_commit_go.yaml | 4 ++-- service/controller/key/key.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pre_commit_go.yaml b/.github/workflows/pre_commit_go.yaml index 243b0517..a268fc92 100644 --- a/.github/workflows/pre_commit_go.yaml +++ b/.github/workflows/pre_commit_go.yaml @@ -13,13 +13,13 @@ jobs: - uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0 - uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1 with: - go-version: "1.22" + go-version: "1.23" - name: Install goimports run: | go install golang.org/x/tools/cmd/goimports@latest - name: Install golangci-lint env: - GOLANGCI_LINT_VERSION: "v1.59.0" + GOLANGCI_LINT_VERSION: "v1.60.3" run: | curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | \ sudo sh -s -- -b $GOPATH/bin ${GOLANGCI_LINT_VERSION} diff --git a/service/controller/key/key.go b/service/controller/key/key.go index 8059990d..e2990cf9 100644 --- a/service/controller/key/key.go +++ b/service/controller/key/key.go @@ -59,7 +59,7 @@ func ClusterID(getter LabelsGetter) string { func DNSIP(clusterIPRange string) (string, error) { ip, _, err := net.ParseCIDR(clusterIPRange) if err != nil { - return "", microerror.Maskf(invalidConfigError, err.Error()) + return "", microerror.Maskf(invalidConfigError, "%s", err.Error()) } // Only IPV4 CIDRs are supported.