opentofu / registry-alpha

Home of the official OpenTofu provider and module registry
Apache License 2.0
64 stars 13 forks source link

Bug: Hashicorp Modules are failing to download #127

Closed RLRabinowitz closed 1 year ago

RLRabinowitz commented 1 year ago

When attempting to download a Hashicorp module, we are getting an error similar to the following one:

Error: Error accessing remote module registry
        │ 
        │ Failed to retrieve a download URL for
        │ registry.opentofu.org/hashicorp/vault/aws 0.17.0 from
        │ registry.opentofu.org: the request failed after 2 attempts, please try
        │ again later: 502 Bad Gateway returned from
        │ https://registry.opentofu.org/v1/modules/hashicorp/vault/aws/0.17.0/download
        ╵

The reason for that is that when looking for the git tag in GitHub, we are using the information from ProviderRedirects when determining the namespace, causing us to look for the tag under github.com/opentofu/terraform-aws-vault instead of github.com/hashicorp/terraform-aws-vault