pulumi/pkg/resource/deploy
Fraser Waters 7ecd8a749c Don't try to install provider during schema loading unless missing
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.
2023-06-28 14:12:17 +01:00
..
deploytest Don't try to install provider during schema loading unless missing 2023-06-28 14:12:17 +01:00
providers Don't try to install provider during schema loading unless missing 2023-06-28 14:12:17 +01:00
builtins.go Send old inputs to diff and update 2023-06-21 21:04:50 +01:00
deployment.go Consolidated Target parameters 2023-06-08 08:42:03 -07:00
deployment_executor.go Consolidated Target parameters 2023-06-08 08:42:03 -07:00
deployment_executor_test.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
deployment_test.go Remove source_fixed 2022-11-08 15:55:45 +00:00
doc.go Document Go packages (#6009) 2021-01-11 11:07:59 -07:00
import.go Don't load providers at startup 2023-05-12 10:04:21 +01:00
manifest.go Split Manifest type to it's own file (#8712) 2022-01-10 12:25:24 +00:00
plan.go all: Fix revive issues 2023-03-21 08:55:11 -07:00
snapshot.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
snapshot_test.go all: Fix revive issues 2023-03-21 08:55:11 -07:00
source.go Monitor.Invoke and Provider.Invoke take different arguments (#9323) 2022-04-14 10:59:46 +01:00
source_error.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
source_eval.go Maintain alias compat for older Node.js SDKs on new CLIs 2023-06-14 08:34:32 -07:00
source_eval_test.go Maintain alias compat for older Node.js SDKs on new CLIs 2023-06-14 08:34:32 -07:00
source_null.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
source_query.go Don't load providers at startup 2023-05-12 10:04:21 +01:00
source_query_test.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
state_builder.go all: Fix revive issues 2023-03-21 08:55:11 -07:00
state_builder_test.go Non-mutating snapshot normalization (#10128) 2022-07-18 14:04:19 -04:00
step.go Merge #13139 2023-06-23 07:14:31 +00:00
step_executor.go Mark outputs secret if there is a matching secret input. 2023-06-23 09:24:21 -07:00
step_generator.go Merge #13139 2023-06-23 07:14:31 +00:00
step_generator_test.go pulumi state unprotect command now uses OS specific quoting 2023-06-22 11:42:08 -07:00
target.go Add getOrganization to nodejs and python (#10504) 2022-08-31 10:33:29 +01:00