Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace versioncheck.Version with semver.ParseTolerant
ParseCiliumVersion uses versioncheck.Version from Cilium's versioncheck package ([1]), which ignores certain pre-release identifiers. Silently ignoring certain pre-release identifiers can be confusing since you might end up installing a different version of Cilium than what you specified. This commit replaces versioncheck.Version with semver.ParseTolerant ([2]) in ParseCiliumVersion function so that cilium-cli interprets the version provided via the --version flag as is. [1]: https://pkg.go.dev/github.com/cilium/cilium/pkg/versioncheck#Version [2]: https://pkg.go.dev/github.com/blang/semver#ParseTolerant Signed-off-by: Michi Mutsuzaki <[email protected]>
- Loading branch information