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 #1498

Merged
merged 1 commit into from
Dec 7, 2024
Merged

Conversation

justinvp
Copy link
Member

@justinvp justinvp commented Dec 6, 2024

This change fixes pulumi about to show the real version instead of unknown for the java 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-java/pkg/version" instead of "github.com/pulumi/pulumi/sdk/v3/go/common/version").

Similar to pulumi/pulumi-yaml#682

Fixes #1461

@justinvp justinvp requested a review from a team as a code owner December 6, 2024 22:04
This change fixes `pulumi about` to show the real version instead of `unknown` for the java 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-java/pkg/version"` instead of `"github.com/pulumi/pulumi/sdk/v3/go/common/version"`).
@justinvp justinvp force-pushed the justin/langhost_version branch from bb3a1ae to b8b8052 Compare December 6, 2024 22:09
@justinvp justinvp merged commit cfe8b2a into main Dec 7, 2024
23 checks passed
@justinvp justinvp deleted the justin/langhost_version branch December 7, 2024 16:16
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 java language plugin version
2 participants