From a44593e8059a2bfe064c6ffb232da0433fb8a8c1 Mon Sep 17 00:00:00 2001 From: Dusty Daemon Date: Fri, 17 Jan 2025 23:14:24 -0500 Subject: [PATCH] =?UTF-8?q?Add=20=E2=80=98v=E2=80=99=20to=20the=20version?= =?UTF-8?q?=20from=20zipfile=20release?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When building from a release zipfile and there is no `git` present, the version number lacks a ‘v’. This triggers db.c to fail it’s `is_released_version` check, which fails because the version not start with a ‘v’ — thereby the database upgrade is rejected. Issue reported by TonyV on Discord: “Hey guys, I just upgraded to the latest release and am now getting ``` Refusing to irreversibly upgrade db from version 219 to 261 in non-final version 24.11.1 (use --database-upgrade=true to override) ``` I have the db backed up... but am I good to make those changes without breaking my channels?” Changelog-Changed: Fix for people upgrading using source release zip packages. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 5cd4628db0f2..439c68dfa36e 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ #! /usr/bin/make # Extract version from git, or if we're from a zipfile, use dirname -VERSION=$(shell git describe --tags --always --dirty=-modded --abbrev=7 2>/dev/null || pwd | sed -n 's|.*/c\{0,1\}lightning-v\{0,1\}\([0-9a-f.rc\-]*\)$$|\1|gp') +VERSION=$(shell git describe --tags --always --dirty=-modded --abbrev=7 2>/dev/null || pwd | sed -n 's|.*/c\{0,1\}lightning-v\{0,1\}\([0-9a-f.rc\-]*\)$$|v\1|gp') # Next release. CLN_NEXT_VERSION := v24.11