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 the language plugin to return a version #390

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

justinvp
Copy link
Member

@justinvp justinvp commented Nov 15, 2024

This change fixes pulumi about to show the real version instead of unknown for the dotnet language plugin.

The fix updates GetPluginInfo to return the Version from the right version Go package—the one that's actually being set during build via ldflags ("github.com/pulumi/pulumi-dotnet/pulumi-language-dotnet/version" instead of "github.com/pulumi/pulumi/sdk/v3/go/common/version", which looks to be a hold over from when this code lived in the pulumi/pulumi repo).

Fixes #389

This change fixes `pulumi about` to show the real version instead of
`unknown` for the dotnet language plugin.

The fix updates `GetPluginInfo` RPC to return the `Version` from the
right `version` Go package—the one that's actually being set
during build via `ldflags`
(`"github.com/pulumi/pulumi-dotnet/pulumi-language-dotnet/version"`
instead of `"github.com/pulumi/pulumi/sdk/v3/go/common/version"`, which
looks to be a hold over from when this code lived in the pulumi/pulumi
repo).
@justinvp justinvp marked this pull request as ready for review November 15, 2024 08:12
@justinvp justinvp requested a review from a team as a code owner November 15, 2024 08:12
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.

pulumi about always shows unknown for the dotnet language plugin version
2 participants