From 51fbff5165a21ac142f7537e2182caf2dd7d9a30 Mon Sep 17 00:00:00 2001 From: Stefan Bueringer Date: Thu, 25 Aug 2022 21:12:38 +0200 Subject: [PATCH] update --- .golangci.yml | 4 ++-- tools/setup-envtest/versions/parse.go | 17 ++++++++--------- 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index e5737af9ac..53aab26b74 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -61,9 +61,9 @@ linters-settings: - pkg: sigs.k8s.io/controller-runtime alias: ctrl staticcheck: - go: "1.18" + go: "1.19" stylecheck: - go: "1.18" + go: "1.19" depguard: include-go-root: true packages: diff --git a/tools/setup-envtest/versions/parse.go b/tools/setup-envtest/versions/parse.go index 4b3c5bb5ba..c053bf8757 100644 --- a/tools/setup-envtest/versions/parse.go +++ b/tools/setup-envtest/versions/parse.go @@ -25,15 +25,14 @@ var ( // where X, Y, and Z may also be wildcards ('*', 'x'), // and pre-release names & numbers may also be wildcards. The prerelease section is slightly // restricted to match what k8s does. -// The the whole string is a version selector as follows: -// -// - X.Y.Z matches version X.Y.Z where x, y, and z are -// are ints >= 0, and Z may be '*' or 'x' -// - X.Y is equivalent to X.Y.* -// - ~X.Y.Z means >= X.Y.Z && < X.Y+1.0 -// - = 0, and Z may be '*' or 'x' +// - X.Y is equivalent to X.Y.* +// - ~X.Y.Z means >= X.Y.Z && < X.Y+1.0 +// -