-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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
"Error: Failed to query available provider packages" with in-house provider #25346
Comments
@wolviecb Thanks for this report! I was able to reproduce this locally. You should be able to work around this issue for now by using the
The output should look something like:
Once this is done, I'm leaving this issue open, as we will address this problem with changes to documentation and possibly code. |
The workaround fixed the issue! Thx! |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
I've seen to be stuck in this error here with a local provider I've built. When I try to
init
with terraform 0.13 I get anError: Failed to query available provider packages
. I'd started reporting this on #25218 and @alisdair pointed that this is probably another issue and asked to another reportTerraform Version
0.13.0 beta2
Terraform Configuration Files
Debug Output
Expected Behavior
terraform init succeeds
Actual Behavior
Terraform tries to download the provider from registry.terraform.io
It's reading some provider info from the state
$ terraform providers Providers required by configuration: . └── provider[local/txr/tranzaxis] 0.0.1 Providers required by state: provider[registry.terraform.io/-/tranzaxis]
although I'm using a local provider
I've tried to init on a clean state and it works as expected, the applied resource has a provider reference that points to the local source that the old state doesn't
old state:
new state:
Steps to Reproduce
terraform init
The text was updated successfully, but these errors were encountered: