i’m having some issues migrating to opentofu
when using some providers
in my current example i’m using hetznercloud/hcloud
and tls
providers and the relevant configuration (json
instead of hcl
):
"terraform": {
"required_providers": {
"hcloud": {
"source": "hetznercloud/hcloud",
"version": ">= 1.44.0"
}
}
}
and the error i get when i run tofu init
$ tofu init
Initializing the backend...
Initializing provider plugins...
- Finding hetznercloud/hcloud versions matching ">= 1.44.0"...
- Finding latest version of hashicorp/tls...
╷
│ Error: Failed to query available provider packages
│
│ Could not retrieve the list of available versions for provider hetznercloud/hcloud: provider registry.opentofu.org/hetznercloud/hcloud was
│ not found in any of the search locations
│
│ - /nix/store/hdddlh2r2cwfwskx6y5j4znwxnv3zc3g-opentofu-1.6.2/libexec/terraform-providers
╵
╷
│ Error: Failed to query available provider packages
│
│ Could not retrieve the list of available versions for provider hashicorp/tls: provider registry.opentofu.org/hashicorp/tls was not found
│ in any of the search locations
│
│ - /nix/store/hdddlh2r2cwfwskx6y5j4znwxnv3zc3g-opentofu-1.6.2/libexec/terraform-providers
╵
i checked and hcloud
is in the opentofu
registry (ref), assuming that is important for a nixpkgs
provided opentofu
binary
this is the nix
expression from my dev shell:
pkgs.opentofu.withPlugins (p: [ p.hcloud p.tls ])
any and all help is greatly appreciated