Skip to content

Commit

Permalink
move staging area to PRJ_CACHE_HOME
Browse files Browse the repository at this point in the history
  • Loading branch information
oneingan authored Oct 17, 2024
1 parent 08aa925 commit 06d0440
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/std/fwlib/blockTypes/terra.nix
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,13 @@ in
export TF_VAR_fragment=${pkgs.lib.strings.escapeShellArg fragment}
export TF_VAR_fragmentRelPath=${fragmentRelPath}
export TF_IN_AUTOMATION=1
# export TF_INPUT=0
export TF_DATA_DIR="$PRJ_DATA_HOME/${fragmentRelPath}"
export TF_PLUGIN_CACHE_DIR="$PRJ_CACHE_HOME/tf-plugin-cache"
mkdir -p "$TF_DATA_DIR"
mkdir -p "$TF_PLUGIN_CACHE_DIR"
dir="$PRJ_ROOT/${repoFolder}/.tf"
mkdir -p "$PRJ_ROOT/${repoFolder}/.tf"
cat << MESSAGE > "$PRJ_ROOT/${repoFolder}/.tf/readme.md"
dir="$PRJ_CACHE_HOME/${fragmentRelPath}/.tf"
mkdir -p "$dir"
cat << MESSAGE > "$dir/readme.md"
This is a tf staging area.
It is motivated by the terraform CLI requiring to be executed in a staging area.
MESSAGE
Expand Down

0 comments on commit 06d0440

Please sign in to comment.