pulumi/pkg/workspace
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
..
creds.go Use os/user for home directory 2018-02-20 15:35:07 -08:00
paths.go Create backups of all local stack checkpoint files (#949) 2018-02-20 21:05:57 -08:00
plugins.go Check plugin cache first; make version mismatch a warning 2018-02-26 11:39:50 -08:00
project.go Rename package to project (#935) 2018-02-14 13:56:16 -08:00
repository.go Pretty-print some JSON files we persist to disk 2018-01-18 20:35:53 -08:00
settings.go Improve the overall cloud CLI experience 2017-12-02 14:34:42 -08:00
workspace.go Create backups of all local stack checkpoint files (#949) 2018-02-20 21:05:57 -08:00