https://pulumi.com logo
Title
p

prehistoric-sandwich-7272

02/12/2023, 7:24 PM
Hey guys! How can I use a specific plugin resource version? I have this plugin in my ~/.pulumi/plugins repo:
xyz         resource  0.0.40        26 MB   50 minutes ago  36 seconds ago
But when I do pulumi up I get these messages:
warning: resource plugin xyz is expected to have version >=0.0.19, but has 0.0.1; the wrong version may be on your path, or this may be a bug in the plugin
    warning: resource plugin xyz is expected to have version >=0.0.40, but has 0.0.1; the wrong version may be on your path, or this may be a bug in the plugin
Why does it expect 0.0.19? And how can I make it point to the version I have locally?
o

orange-policeman-59119

02/13/2023, 2:48 AM
It looks like you need to make sure that you're building the plugin with the VERSION property, and also putting that in the schema.json file. I think some of our boilerplates do this for you automatically. This warning indicates that the SDK was generated for one version (each SDK embeds a version number), and the plugin binary is reporting to the engine that it's a different version. Is your provider open source so I could take a look at how it's set up?
e

echoing-dinner-19531

02/13/2023, 11:09 AM
Also this normally happens because you have "pulumi-resoruce-xyz" on PATH (usually in ~/go/bin because go just loves to put everything in a global folder)