Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix warning for Automation API inline programs #388

Merged
merged 1 commit into from
Nov 27, 2024
Merged

Conversation

justinvp
Copy link
Member

@justinvp justinvp commented Nov 15, 2024

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 pulumi/pulumi#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

@justinvp justinvp marked this pull request as ready for review November 15, 2024 07:41
@justinvp justinvp requested a review from a team as a code owner November 15, 2024 07:41
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. 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.

Separately, we should consider updating the CLI to not emit the warning
to users when the language host does not implement `GetPluginInfo`.
@justinvp justinvp added this pull request to the merge queue Nov 27, 2024
Merged via the queue into main with commit f7b4969 Nov 27, 2024
17 checks passed
@justinvp justinvp deleted the justin/auto_warning branch November 27, 2024 20:46
@justinvp justinvp mentioned this pull request Nov 27, 2024
github-merge-queue bot pushed a commit that referenced this pull request Nov 27, 2024
## v3.70.0 - 2024-11-27

### Bug Fixes

- [sdk/auto] Fix warning for inline programs
[#388](#388)

### Improvements

- [runtime] Reduce binary size by stripping debug information
[#411](#411)
@pulumi-bot
Copy link

This PR has been shipped in release v3.70.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

warning: failed to get plugin info for language plugin client
3 participants