File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -558,11 +558,13 @@ function common::terraform_init {
558558 # The global provider cache is safe for concurrent use by multiple processes for OpenTofu v1.10+
559559 # More details - https://github.com/opentofu/opentofu/pull/1878
560560 # For that reason, we switch to `tofu init` when possible
561+ echo " Using Terraform binary path: $tf_path "
561562 if [[ " $( $tf_path -version | head -1 | grep ' ^Terraform' ) " == " Terraform" ]] &&
562563 common::tofu_version_ge_1.10; then
563564 tf_path=$( command -v tofu)
564565 common::colorify " green" " Using OpenTofu binary ($tf_path ) for Terraform init operations, as it supports concurrent provider initialization."
565566 fi
567+ echo " Running 'terraform init' with plugin cache dir: $TF_PLUGIN_CACHE_DIR "
566568
567569 # Locking just doesn't work, and the below works quicker instead. Details:
568570 # https://github.com/hashicorp/terraform/issues/31964#issuecomment-1939869453
@@ -635,6 +637,7 @@ function common::tofu_version_ge_1.10 {
635637
636638 # Extract version number (e.g., "tofu version v1.10.4" -> "1.10")
637639 tofu_version=$( tofu --version 2> /dev/null | grep -oE ' [0-9]+\.[0-9]+' )
640+ echo " Detected OpenTofu version: $tofu_version "
638641 # If we can't parse version, default to older command
639642 [[ ! $tofu_version ]] && return 1
640643
You can’t perform that action at this time.
0 commit comments