opentofu: patch plugins to use opentofu plugin registry
This commit is contained in:
parent
187ef4d65b
commit
d99f51ac60
@ -99,11 +99,24 @@ let
|
||||
in
|
||||
test;
|
||||
|
||||
plugins = removeAttrs terraform-providers [
|
||||
"override"
|
||||
"overrideDerivation"
|
||||
"recurseForDerivations"
|
||||
];
|
||||
plugins =
|
||||
lib.mapAttrs
|
||||
(
|
||||
_: provider:
|
||||
# use opentofu plugin registry over terraform's
|
||||
provider.override (oldArgs: {
|
||||
provider-source-address = lib.replaceStrings [ "https://registry.terraform.io/providers" ] [
|
||||
"registry.opentofu.org"
|
||||
] oldArgs.homepage;
|
||||
})
|
||||
)
|
||||
(
|
||||
removeAttrs terraform-providers [
|
||||
"override"
|
||||
"overrideDerivation"
|
||||
"recurseForDerivations"
|
||||
]
|
||||
);
|
||||
|
||||
withPlugins =
|
||||
plugins:
|
||||
|
Loading…
Reference in New Issue
Block a user