pulumi/pulumi-java

`pulumi about` always shows `unknown` for the java language plugin version

Closed this issue · 0 comments

When running pulumi about for a Pulumi Java program, it shows unknown for the language plugin version. Instead, it should show the version of the language plugin.

GetPluginInfo is returning version.Version for the version:

func (host *javaLanguageHost) GetPluginInfo(_ context.Context, _ *pbempty.Empty) (*pulumirpc.PluginInfo, error) {
return &pulumirpc.PluginInfo{
Version: version.Version,
}, nil
}

But the wrong package is being used. It's using "github.com/pulumi/pulumi/sdk/v3/go/common/version" when it should be using "github.com/pulumi/pulumi-java/pkg/version" as the latter package's Version variable is the one that's actually being set during build:

- -X github.com/pulumi/pulumi-java/pkg/version.Version={{.Tag}}