summaryrefslogtreecommitdiff
path: root/vendor/github.com/containernetworking/cni/pkg
diff options
context:
space:
mode:
authordependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>2022-04-28 12:09:13 +0000
committerGitHub <noreply@github.com>2022-04-28 12:09:13 +0000
commit589e42c9906fc01767bbeecea46f9ff3dd20dc75 (patch)
treeffcb58cdb45b8f02fa059579aa58e137d3b0046e /vendor/github.com/containernetworking/cni/pkg
parent2b8cafc0671fbbd155770f044b8216f050877192 (diff)
downloadpodman-589e42c9906fc01767bbeecea46f9ff3dd20dc75.tar.gz
podman-589e42c9906fc01767bbeecea46f9ff3dd20dc75.tar.bz2
podman-589e42c9906fc01767bbeecea46f9ff3dd20dc75.zip
Bump github.com/containernetworking/cni from 1.0.1 to 1.1.0
Bumps [github.com/containernetworking/cni](https://github.com/containernetworking/cni) from 1.0.1 to 1.1.0. - [Release notes](https://github.com/containernetworking/cni/releases) - [Commits](https://github.com/containernetworking/cni/compare/v1.0.1...v1.1.0) --- updated-dependencies: - dependency-name: github.com/containernetworking/cni dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
Diffstat (limited to 'vendor/github.com/containernetworking/cni/pkg')
-rw-r--r--vendor/github.com/containernetworking/cni/pkg/version/plugin.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/vendor/github.com/containernetworking/cni/pkg/version/plugin.go b/vendor/github.com/containernetworking/cni/pkg/version/plugin.go
index d4bc9d169..17b22b6b0 100644
--- a/vendor/github.com/containernetworking/cni/pkg/version/plugin.go
+++ b/vendor/github.com/containernetworking/cni/pkg/version/plugin.go
@@ -86,8 +86,8 @@ func (*PluginDecoder) Decode(jsonBytes []byte) (PluginInfo, error) {
// minor, and micro numbers or returns an error
func ParseVersion(version string) (int, int, int, error) {
var major, minor, micro int
- if version == "" {
- return -1, -1, -1, fmt.Errorf("invalid version %q: the version is empty", version)
+ if version == "" { // special case: no version declared == v0.1.0
+ return 0, 1, 0, nil
}
parts := strings.Split(version, ".")