From 6055de8c52424ef2156eaf6f22246c7bbdd6d715 Mon Sep 17 00:00:00 2001 From: Floppy Disk Date: Tue, 15 Oct 2024 21:14:06 +0300 Subject: [PATCH] fix version if work in fort --- scripts/common-envs.mk | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/common-envs.mk b/scripts/common-envs.mk index 6738677d4..668266c5a 100644 --- a/scripts/common-envs.mk +++ b/scripts/common-envs.mk @@ -8,3 +8,9 @@ TAG = $(shell git describe --tags --exact-match 2>/dev/null || echo latest) define settag $(if $(filter $(TAG),latest),latest,$(1)) endef + +ifeq ($(VERSION),) + $(shell git remote add upstream https://github.com/aenix-io/cozystack.git || true) + $(shell git fetch upstream --tags) + VERSION = $(patsubst v%,%,$(shell git describe --tags --abbrev=0)) +endif