pdns-builder: Fix version numbering
authorPieter Lexis <pieter.lexis@powerdns.com>
Fri, 8 Jun 2018 13:58:09 +0000 (15:58 +0200)
committerPieter Lexis <pieter.lexis@powerdns.com>
Thu, 27 Sep 2018 11:59:30 +0000 (13:59 +0200)
builder-support/gen-version

index 78d758949bd36f1fc8e59fb5f0bfd37b55d13366..35f2bc30c7c60150b37632bafe93f772de0325d6 100755 (executable)
@@ -38,7 +38,11 @@ if [ ! -z "$(git rev-parse --abbrev-ref HEAD 2> /dev/null)" ]; then
   GIT_HASH="$(echo ${GIT_VERSION} | cut -d- -f3)"
 
   if [ -z "${GIT_VERSION}" ]; then
-    LAST_TAG=0.0
+    # We used 0.0.XXXX for master in the previous incarnation of our build pipeline.
+    # This would become 0.0.0.XXXX in this incarnation, which would break upgrades.
+    # Hence, 0.1.0.XXXX will be the version for master for now on.
+    # This _should_ be ok for forever is we stick to X.Y.Z for version numbers
+    LAST_TAG=0.1.0
     COMMITS_SINCE_TAG="$(git rev-list --count 12c868770afc20b6cc0da439d881105151d557dd..HEAD 2> /dev/null)"
     GIT_HASH="$(git rev-parse HEAD | cut -c1-10 2> /dev/null)"
   fi