We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ac6c77c + 6b1d1cc commit c634276Copy full SHA for c634276
hack/lib/version.sh
@@ -66,7 +66,7 @@ kube::version::get_version_vars() {
66
fi
67
68
# Use git describe to find the version based on tags.
69
- if [[ -n ${KUBE_GIT_VERSION-} ]] || KUBE_GIT_VERSION=$("${git[@]}" describe --tags --abbrev=14 "${KUBE_GIT_COMMIT}^{commit}" 2>/dev/null); then
+ if [[ -n ${KUBE_GIT_VERSION-} ]] || KUBE_GIT_VERSION=$("${git[@]}" describe --tags --match='v*' --abbrev=14 "${KUBE_GIT_COMMIT}^{commit}" 2>/dev/null); then
70
# This translates the "git describe" to an actual semver.org
71
# compatible semantic version that looks something like this:
72
# v1.1.0-alpha.0.6+84c76d1142ea4d
0 commit comments