From 6769b790276b26e8f6f28ace99ce20f8245a37d5 Mon Sep 17 00:00:00 2001 From: Yethal <26117918+Yethal@users.noreply.github.com> Date: Wed, 12 Nov 2025 14:48:51 +0100 Subject: [PATCH] Turns out tofu needs -chdir flag after all --- nix/terraform-validate/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nix/terraform-validate/default.nix b/nix/terraform-validate/default.nix index fbf4ed70..c0f1102d 100644 --- a/nix/terraform-validate/default.nix +++ b/nix/terraform-validate/default.nix @@ -8,7 +8,7 @@ set -x | sort \ | uniq \ | while read dir; do - ${opentofu}/bin/tofu init "$dir" - ${opentofu}/bin/tofu validate "$dir" + ${opentofu}/bin/tofu -chdir="$dir" init + ${opentofu}/bin/tofu -chdir="$dir" validate done ''