Skip to content

Commit

Permalink
Swallow required plugins error (#391)
Browse files Browse the repository at this point in the history
  • Loading branch information
aq17 committed Nov 2, 2022
1 parent ff78f01 commit 2fc03dc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/server/server.go
Expand Up @@ -89,7 +89,10 @@ func (host *yamlLanguageHost) GetRequiredPlugins(ctx context.Context,
pkgs, pluginDiags := pulumiyaml.GetReferencedPlugins(template)
diags.Extend(pluginDiags...)
if diags.HasErrors() {
return nil, diags
// We currently swallow the error to allow project config to evaluate
// Specifically, if one sets a config key via the CLI but not within the `config` block
// of their YAML program, it would error.
return &pulumirpc.GetRequiredPluginsResponse{}, nil
}
var plugins []*pulumirpc.PluginDependency
for _, pkg := range pkgs {
Expand Down

0 comments on commit 2fc03dc

Please sign in to comment.