From c45b841fc0afbadf3938cc88e5a3c3fd6f8c6438 Mon Sep 17 00:00:00 2001 From: Joost Jager Date: Wed, 8 Jan 2020 07:55:10 +0100 Subject: [PATCH] build: bump version to 0.9.0-beta --- build/release/release.sh | 7 +++++++ build/version.go | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/build/release/release.sh b/build/release/release.sh index 8bb5c1e4..5e4fa518 100755 --- a/build/release/release.sh +++ b/build/release/release.sh @@ -36,6 +36,13 @@ else LND_VERSION="v${BASH_REMATCH[1]}" echo "version: $LND_VERSION" + # If tag contains a release candidate suffix, append this suffix to the + # lnd reported version before we compare. + RC_REGEX="-rc[0-9]+$" + if [[ $TAG =~ $RC_REGEX ]]; then + LND_VERSION+=${BASH_REMATCH[0]} + fi + # Match git tag with lnd version. if [[ $TAG != $LND_VERSION ]]; then echo "lnd version $LND_VERSION does not match tag $TAG" diff --git a/build/version.go b/build/version.go index cc429e47..af068c44 100644 --- a/build/version.go +++ b/build/version.go @@ -22,8 +22,8 @@ const semanticAlphabet = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqr // versioning 2.0.0 spec (http://semver.org/). const ( appMajor uint = 0 - appMinor uint = 8 - appPatch uint = 2 + appMinor uint = 9 + appPatch uint = 0 // appPreRelease MUST only contain characters from semanticAlphabet // per the semantic versioning spec.