about summary refs log tree commit diff
path: root/pkgs/applications/networking/cluster/opentofu/default.nix
diff options
context:
space:
mode:
authorNick Cao <nickcao@nichi.co>2023-10-06 23:03:09 -0400
committerNick Cao <nickcao@nichi.co>2023-10-06 23:05:41 -0400
commitb6fd0852efdfa409f9c050026e1cb12175923970 (patch)
treeb59d0c2429a85b8de9c396676972e56328e42a61 /pkgs/applications/networking/cluster/opentofu/default.nix
parent5fe9d412620f35b6e71f6db64489b29f40d2d9e6 (diff)
opentofu: fix tests.opentofu_plugins_test by explicitly setting provider source
Diffstat (limited to 'pkgs/applications/networking/cluster/opentofu/default.nix')
-rw-r--r--pkgs/applications/networking/cluster/opentofu/default.nix8
1 files changed, 8 insertions, 0 deletions
diff --git a/pkgs/applications/networking/cluster/opentofu/default.nix b/pkgs/applications/networking/cluster/opentofu/default.nix
index 469d0b2136742..f98f9eb110a97 100644
--- a/pkgs/applications/networking/cluster/opentofu/default.nix
+++ b/pkgs/applications/networking/cluster/opentofu/default.nix
@@ -65,6 +65,14 @@ let
 
   opentofu_plugins_test = let
     mainTf = writeText "main.tf" ''
+      terraform {
+        required_providers {
+          random = {
+            source  = "registry.terraform.io/hashicorp/random"
+          }
+        }
+      }
+
       resource "random_id" "test" {}
     '';
     opentofu = package.withPlugins (p: [ p.random ]);