diff --git a/go.mod b/go.mod index af28491d1..8e3f20979 100644 --- a/go.mod +++ b/go.mod @@ -12,6 +12,6 @@ require ( k8s.io/client-go v0.21.4 knative.dev/hack v0.0.0-20210806075220-815cd312d65c knative.dev/networking v0.0.0-20210914225408-69ad45454096 - knative.dev/pkg v0.0.0-20210914164111-4857ab6939e3 + knative.dev/pkg v0.0.0-20210917133632-a49a60e62603 sigs.k8s.io/yaml v1.2.0 ) diff --git a/go.sum b/go.sum index b1da5117b..054cf51a0 100644 --- a/go.sum +++ b/go.sum @@ -1349,8 +1349,9 @@ knative.dev/hack v0.0.0-20210806075220-815cd312d65c h1:nOXoDWAAItwr4o0dp3nHr6skg knative.dev/hack v0.0.0-20210806075220-815cd312d65c/go.mod h1:PHt8x8yX5Z9pPquBEfIj0X66f8iWkWfR0S/sarACJrI= knative.dev/networking v0.0.0-20210914225408-69ad45454096 h1:Zo8WfetGtm4YPtex9Wo5FQbMNvTAMVuvnlZtWcZZFm0= knative.dev/networking v0.0.0-20210914225408-69ad45454096/go.mod h1:nQnVhVss/mFwL6E52vS01Qo0j9/mHTi9UUoETx8BRF0= -knative.dev/pkg v0.0.0-20210914164111-4857ab6939e3 h1:45c2VIOBQP6jpRj+pEyciuzTmBwbZpv8jBfBEf/B5oM= knative.dev/pkg v0.0.0-20210914164111-4857ab6939e3/go.mod h1:jMSqkNMsrzuy+XR4Yr/BMy7SDVbUOl3KKB6+5MR+ZU8= +knative.dev/pkg v0.0.0-20210917133632-a49a60e62603 h1:dMFYeI7NI6KfHm29FyaDe+B0D1os4QZYmqp3/r+WiHU= +knative.dev/pkg v0.0.0-20210917133632-a49a60e62603/go.mod h1:jMSqkNMsrzuy+XR4Yr/BMy7SDVbUOl3KKB6+5MR+ZU8= pgregory.net/rapid v0.3.3/go.mod h1:UYpPVyjFHzYBGHIxLFoupi8vwk6rXNzRY9OMvVxFIOU= rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8= rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0= diff --git a/vendor/knative.dev/pkg/version/version.go b/vendor/knative.dev/pkg/version/version.go index 3cbd846ea..56b7ae958 100644 --- a/vendor/knative.dev/pkg/version/version.go +++ b/vendor/knative.dev/pkg/version/version.go @@ -66,8 +66,9 @@ func CheckMinimumVersion(versioner discovery.ServerVersionInterface) error { // If no specific pre-release requirement is set, we default to "-0" to always allow // pre-release versions of the same Major.Minor.Patch version. + // Set IsNum to true otherwise currentVersion.LT() below always returns true. if len(minimumVersion.Pre) == 0 { - minimumVersion.Pre = []semver.PRVersion{{VersionNum: 0}} + minimumVersion.Pre = []semver.PRVersion{{VersionNum: 0, IsNum: true}} } // Return error if the current version is less than the minimum version required. diff --git a/vendor/modules.txt b/vendor/modules.txt index 9970f2c7a..d36cec9a0 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -937,7 +937,7 @@ knative.dev/networking/test/test_images/runtime/handlers knative.dev/networking/test/test_images/timeout knative.dev/networking/test/test_images/wsserver knative.dev/networking/test/types -# knative.dev/pkg v0.0.0-20210914164111-4857ab6939e3 +# knative.dev/pkg v0.0.0-20210917133632-a49a60e62603 ## explicit knative.dev/pkg/apis knative.dev/pkg/apis/duck