| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
This fixes an issue where the Terraform autodiscovery plugin drops the hostname for non-default registries (like OpenTofu) and falls back to registry.terraform.io.
There was a problem hiding this comment.
Thank you for the pullrequest.
This sounds good to me, could you confirm that you tested
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
This fixes an issue where the Terraform autodiscovery plugin drops the hostname for non-default registries (like OpenTofu) and falls back to registry.terraform.io.
Fix #9232
When generating the updatecli manifest, the Terraform autodiscovery plugin was omitting the hostname field for the terraform/registry source configuration. Because of this, Updatecli would default to registry.terraform.io, causing it to throw a 404 error when trying to resolve providers hosted on alternative registries like registry.opentofu.org.
This PR uses the terraformRegistryAddress parser to extract the exact hostname from the provider string inside .terraform.lock.hcl. It then explicitly injects the hostname field into the generated manifest template if the hostname differs from the default registry.terraform.io.
Test
To test this pull request, you can run the following commands: