We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b8ad4e4 commit e231731Copy full SHA for e231731
hack/version.sh
@@ -28,8 +28,8 @@ version::get_version_vars() {
28
fi
29
30
# stolen from k8s.io/hack/lib/version.sh
31
- # Use git describe to find the version based on tags.
32
- if GIT_VERSION=$(git describe --tags --abbrev=14 2>/dev/null); then
+ # Use git describe to find the version based on annotated tags.
+ if GIT_VERSION=$(git describe --abbrev=14 --match "v[0-9]*" 2>/dev/null); then
33
# This translates the "git describe" to an actual semver.org
34
# compatible semantic version that looks something like this:
35
# v1.1.0-alpha.0.6+84c76d1142ea4d
0 commit comments