Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
sbueringer committed Aug 25, 2022
1 parent f6c821c commit 51fbff5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
4 changes: 2 additions & 2 deletions .golangci.yml
Expand Up @@ -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:
Expand Down
17 changes: 8 additions & 9 deletions tools/setup-envtest/versions/parse.go
Expand Up @@ -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
// - <X.Y.Z means older than the X.Y.Z (mainly useful for cleanup (similarly for <=)
// - an '!' at the end means force checking API server for the latest versions
// instead of settling for local matches.
// 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
// - <X.Y.Z means older than the X.Y.Z (mainly useful for cleanup (similarly for <=)
// - an '!' at the end means force checking API server for the latest versions
// instead of settling for local matches.
//
// ^[^~]?SEMVER(!)??$ .
func FromExpr(expr string) (Spec, error) {
Expand Down

0 comments on commit 51fbff5

Please sign in to comment.