pulumi / pulumi-dotnet

.NET support for Pulumi
Apache License 2.0
27 stars 25 forks source link

Fix warning for Automation API inline programs #388

Open justinvp opened 1 week ago

justinvp commented 1 week ago

When using Automation API inline programs with Pulumi CLI v3.132.0 and later, a warning is emitted because the language host for .NET inline programs does not implement the GetPluginInfo RPC (from https://github.com/pulumi/pulumi/pull/17216).

This change adds an implementation for GetPluginInfo, which avoids the warning. The implementation returns "1.0.0" for the version, which matches Node.js and Go (though, Python returns an empty string).

Separately, we should consider updating the CLI to not emit the warning to users when the language host does not implement GetPluginInfo.

Fixes #369