Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for fetching provider sources from archived repositories? #137

Closed
mmierzwa opened this issue May 15, 2023 · 1 comment · Fixed by #145
Closed

Support for fetching provider sources from archived repositories? #137

mmierzwa opened this issue May 15, 2023 · 1 comment · Fixed by #145

Comments

@mmierzwa
Copy link

Does the helper support fetching sources from achieved repositories?

Expected Behavior

The command:

> m1-terraform-provider-helper install hashicorp/terraform-provider-mysql -v v1.9.0

installs the given provider.

Actual Behavior

> m1-terraform-provider-helper install hashicorp/terraform-provider-mysql -v v1.9.0

Getting provider data from terraform registry
Getting source code...
error: repository does not exist

Steps to Reproduce (including precondition)

  1. Activate.
  2. Try to install as described above.

Your Environment

  • OS: 13.3.1 (a) (22E772610a)
  • m1-terraform-provider-helper version: 0.8.2
@mavogel
Copy link
Contributor

mavogel commented Jun 27, 2023

Hi, I debugged your issue and could reproduce the bug

  • internally we get the information about the provider from an URL, in this case: https://registry.terraform.io/v1/providers/hashicorp/terraform-provider-mysql
  • it should return a json we can parse, however it returns {"errors":["Not Found"]}
  • which then should fail by parsing and return an error, which it does not
  • the error error: repository does not exist you see it just a follow up because we don't catch the other error earlier

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants