From 346de76998545e269a70510cc74049d1e6b64c4d Mon Sep 17 00:00:00 2001 From: Timothy Goff Date: Thu, 14 May 2026 15:09:15 -0400 Subject: [PATCH] do not try to get CIRRUS versions from git environment if they are already set in environment variables --- Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 6410adb..69941ab 100644 --- a/Makefile +++ b/Makefile @@ -26,9 +26,13 @@ export TF_VAR_MATURITY=${MATURITY} export TF_VAR_DEPLOY_NAME=${DEPLOY_NAME} PYTHON_VER ?= python3 -CIRRUS_CORE_VERSION := $(or $(shell git tag --points-at HEAD | head -n1),$(shell git rev-parse --short HEAD)) +ifndef CIRRUS_CORE_VERSION + CIRRUS_CORE_VERSION := $(or $(shell git tag --points-at HEAD | head -n1),$(shell git rev-parse --short HEAD)) +endif ifdef DAAC_DIR -CIRRUS_DAAC_VERSION := $(or $(shell git -C $(DAAC_DIR) tag --points-at HEAD | head -n1),$(shell git -C $(DAAC_DIR) rev-parse --short HEAD)) + ifndef CIRRUS_DAAC_VERSION + CIRRUS_DAAC_VERSION := $(or $(shell git -C $(DAAC_DIR) tag --points-at HEAD | head -n1),$(shell git -C $(DAAC_DIR) rev-parse --short HEAD)) + endif endif THIN_EGRESS_LOG_EXIST := "0"