From 0fd84c6f81d03f0a4c68d85a3a5d4948014a506f Mon Sep 17 00:00:00 2001 From: Pieter Lexis Date: Fri, 8 Jun 2018 15:58:09 +0200 Subject: [PATCH] pdns-builder: Fix version numbering --- builder-support/gen-version | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/builder-support/gen-version b/builder-support/gen-version index 78d758949b..35f2bc30c7 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 -- 2.47.2