pulumi/pkg/resource/plugin
Matt Ellis ed7a4d9157 Check plugin cache first; make version mismatch a warning
Previously, we would prefer a plugin on the $PATH which is more or
less always the case for people hacking on `pulumi`. Later, when we
went to check the loaded plugin version matched the one we requested,
we fail.

Now, if we have a version, we'll first consult the local plugin
cache. If that fails, we'll fall back to the $PATH as we used to.

When we are loading a plugin without a version, we continue to use the
one on the $PATH (without testing the cache) on the assumption it is
newer.

In addition, we've turned the "plugin versions are mis-matched" from
an error into a warning. We expect that we'll only ever see this
warning when something strange is going on (since in the normal case,
we'll have found the exact version in the cache) but having it not
hard fail does help in development cases.

Fixes #977
2018-02-26 11:39:50 -08:00
..
analyzer.go Consult the program for its list of plugins 2018-02-18 08:08:15 -08:00
analyzer_plugin.go Capture plugin names in the manifest (#967) 2018-02-21 10:32:31 -08:00
check.go Rename pulumi-fabric to pulumi 2017-09-21 19:18:21 -07:00
context.go Set pwd for plugins (#706) 2017-12-12 12:31:09 -08:00
host.go Check plugin cache first; make version mismatch a warning 2018-02-26 11:39:50 -08:00
host_server.go Rename pulumi-fabric to pulumi 2017-09-21 19:18:21 -07:00
langruntime.go Reimplement GetRequiredPlugins in Go 2018-02-18 08:08:15 -08:00
langruntime_plugin.go Tolerate missing GetRequiredPlugins RPC method (#973) 2018-02-22 07:50:37 -08:00
plugin.go Don't block on nil channels 2018-02-19 14:06:15 -08:00
provider.go Consult the program for its list of plugins 2018-02-18 08:08:15 -08:00
provider_plugin.go Capture plugin names in the manifest (#967) 2018-02-21 10:32:31 -08:00
rpc.go Introduce Output<T> and update Resource construction code to properly handle it. (#834) 2018-02-05 14:44:23 -08:00
rpc_test.go Introduce Output<T> and update Resource construction code to properly handle it. (#834) 2018-02-05 14:44:23 -08:00