From 3a44b9f6f09b6210d788853567349f6c23604bbc Mon Sep 17 00:00:00 2001 From: Juanjo Presa Date: Thu, 17 Oct 2024 13:15:35 +0200 Subject: [PATCH] Move staging area to PRJ_ROOT/.cache I force tf cache to be in PRJ_ROOT, to guarantee i can access other files in repo using relative paths. --- src/std/fwlib/blockTypes/terra.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/std/fwlib/blockTypes/terra.nix b/src/std/fwlib/blockTypes/terra.nix index 3378beae..c7b7caa1 100644 --- a/src/std/fwlib/blockTypes/terra.nix +++ b/src/std/fwlib/blockTypes/terra.nix @@ -67,7 +67,7 @@ in export TF_PLUGIN_CACHE_DIR="$PRJ_CACHE_HOME/tf-plugin-cache" mkdir -p "$TF_DATA_DIR" mkdir -p "$TF_PLUGIN_CACHE_DIR" - dir="$PRJ_CACHE_HOME/${fragmentRelPath}/.tf" + dir="$PRJ_ROOT/.cache/${fragmentRelPath}/.tf" mkdir -p "$dir" cat << MESSAGE > "$dir/readme.md" This is a tf staging area.