mirror of https://github.com/pulumi/pulumi.git
7ecd8a749c
Fixes https://github.com/pulumi/pulumi-terraform-bridge/issues/1247 When running tfgen the provider plugin is generally only available on PATH, not in the plugins directory. The schema loader was only checking the plugins directory to decided if it had a resource provider already installed, and so sent off lots of github requests to lookup latest versions of plugins while running example conversion. This changes the schema loader to use the same logic we use elsewhere where we try to use the provider (which will also look at PATH) and then if we get a missing plugin error we'll do the install and then try again. I've also moved the `SetKnownPluginDownloadURL` call into workspace.InstallPlugin so we don't forget to call it before passing specs in. Finally I've also removed the InstallPlugin method from Host as the only place it was used was in the schema loader, which is now using workspace.InstallPlugin like everywhere else. |
||
---|---|---|
.. | ||
doc.go | ||
provider.go | ||
provider_test.go | ||
reference.go | ||
reference_test.go | ||
registry.go | ||
registry_test.go |