Small change to the logic around ambient plugins on the PATH
@@ -587,7 +587,7 @@ func GetPluginPath(kind PluginKind, name string, version *semver.Version) (strin
// If we have a version of the plugin on its $PATH, use it, unless we have opted out of this behavior explicitly.
// This supports development scenarios.
- if os.Getenv("PULUMI_IGNORE_AMBIENT_PLUGINS") != "" {
+ if _, isFound := os.LookupEnv("PULUMI_IGNORE_AMBIENT_PLUGINS"); !isFound {
filename = (&PluginInfo{Kind: kind, Name: name, Version: version}).FilePrefix()
if path, err := exec.LookPath(filename); err == nil {
logging.V(6).Infof("GetPluginPath(%s, %s, %v): found on $PATH %s", kind, name, version, path)
