From 8de5dd420d6f3d013fee2c21dd800c7cc012a8c2 Mon Sep 17 00:00:00 2001 From: Gerd Oberlechner Date: Thu, 12 Dec 2024 13:21:04 +0100 Subject: [PATCH] fix setupenv.mk cache invalidation the generated cached env file was not per Makefile, so running multiple make deploy targets in a row failed Signed-off-by: Gerd Oberlechner --- setup-env.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup-env.mk b/setup-env.mk index 3f939d40d..25c877cc0 100644 --- a/setup-env.mk +++ b/setup-env.mk @@ -8,7 +8,7 @@ PROJECT_ROOT_DIR := $(dir $(abspath $(lastword $(MAKEFILE_LIST)))) DEPLOY_ENV ?= personal-dev PIPELINE ?= pipeline.yaml PIPELINE_STEP ?= deploy -HASH = $(shell echo -n "$(DEPLOY_ENV)$(PIPELINE)$(PIPELINE_STEP)" | sha256sum | cut -d " " -f 1) +HASH = $(shell echo -n "$(DEPLOY_ENV)$(PIPELINE)$(PIPELINE_STEP)$(PWD)" | sha256sum | cut -d " " -f 1) ENV_VARS_FILE ?= /tmp/deploy.${HASH}.cfg # Target to generate the environment variables file