From b6fd0852efdfa409f9c050026e1cb12175923970 Mon Sep 17 00:00:00 2001 From: Nick Cao Date: Fri, 6 Oct 2023 23:03:09 -0400 Subject: [PATCH] opentofu: fix tests.opentofu_plugins_test by explicitly setting provider source --- pkgs/applications/networking/cluster/opentofu/default.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkgs/applications/networking/cluster/opentofu/default.nix b/pkgs/applications/networking/cluster/opentofu/default.nix index 469d0b213674..f98f9eb110a9 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 ]);