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

Merged
merged 2 commits into from
Dec 6, 2024
Merged

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 yaml 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-yaml/pkg/version" instead of "github.com/pulumi/pulumi/sdk/v3/go/common/version").

Fixes #680

This change fixes `pulumi about` to show the real version instead of `unknown` for the yaml 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-yaml/pkg/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 force-pushed the justin/langhost_version branch from b483edf to 78ebb54 Compare November 15, 2024 08:44
@justinvp justinvp marked this pull request as ready for review November 15, 2024 08:44
@justinvp justinvp requested a review from a team as a code owner November 15, 2024 08:44
@justinvp justinvp enabled auto-merge (squash) November 15, 2024 08:48
@justinvp
Copy link
Member Author

The new test I added is failing because we're not setting the version when building via the Makefile (which is the build used when running the tests):

${GO} build $(BUILD_FLAGS) -o ./bin -p ${CONCURRENCY} ./cmd/...

Will fix.

@justinvp justinvp merged commit ae97861 into main Dec 6, 2024
6 checks passed
@justinvp justinvp deleted the justin/langhost_version branch December 6, 2024 19:31
justinvp added a commit to pulumi/pulumi-java that referenced this pull request Dec 7, 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
@julienp julienp mentioned this pull request Dec 17, 2024
julienp added a commit that referenced this pull request Dec 17, 2024
## v1.13.0 - 2024-12-17

### Improvements

- [runtime] Allow specifying dependencies for output invokes
[#693](#693)

- [runtime] Update to pulumi v3.143.0
[#700](#700)

### Bug Fixes

- [runtime] Fix the language plugin to return a version
[#682](#682)

- [runtime] Fix a mixup between package names and plugin names when
listing required plugins
[#688](#688)

- [runtime] Resource properties marked as secret in schema are now sent
as secrets [#698](#698)

- [convert] Emit invoke options to PCL when ejecting YAML templates
[#697](#697)
@pulumi-bot
Copy link

This PR has been shipped in release v1.13.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.

pulumi about always shows unknown for the yaml language plugin version
3 participants