From: Pieter Lexis Date: Fri, 8 Jun 2018 13:58:09 +0000 (+0200) Subject: pdns-builder: Fix version numbering X-Git-Tag: dnsdist-1.3.3~83^2~8 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0fd84c6f81d03f0a4c68d85a3a5d4948014a506f;p=pdns pdns-builder: Fix version numbering --- diff --git a/builder-support/gen-version b/builder-support/gen-version index 78d758949..35f2bc30c 100755 --- a/builder-support/gen-version +++ b/builder-support/gen-version @@ -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