delightful-napkin-38557
06/02/2022, 8:06 PMpulumi plugin install resource xyz 0.0.1 --file ./dist/pulumi-resource-xyz-v0.0.1-linux-amd64.tar.gz
. But the last thing I can not find in the doc, it's how to use the plugin/resource in my main (python) code. Can someone help me with that ? Thanks !billowy-army-68599
06/02/2022, 8:09 PMpip3 install -e sdk/python/bin
then you can just import itdelightful-napkin-38557
06/02/2022, 8:12 PMbillowy-army-68599
06/02/2022, 8:12 PMmake generate
?delightful-napkin-38557
06/02/2022, 8:13 PMplugin install
?pip3 install -e .../sdk/python/
works, thanks !
But I just don't get the pulumi plugin install --file ...
command. It seems useless ?billowy-army-68599
06/02/2022, 8:19 PMdelightful-napkin-38557
06/02/2022, 8:20 PMbillowy-army-68599
06/02/2022, 8:21 PMpulumi up
resources.go
and publish the tarball to github releases, it'll get installed automatically for usersdelightful-napkin-38557
06/02/2022, 8:22 PMbillowy-army-68599
06/02/2022, 8:22 PMdelightful-napkin-38557
06/02/2022, 8:22 PMbillowy-army-68599
06/02/2022, 8:23 PMdelightful-napkin-38557
06/02/2022, 8:24 PMif you set the right fields in your resources.go and publish the tarball to github releases, it'll get installed automatically for users
when ? when the user install the plugin with pulumi plugin install
?billowy-army-68599
06/02/2022, 8:25 PMresources.go
should be switched for schema.json
delightful-napkin-38557
06/02/2022, 8:26 PMbillowy-army-68599
06/02/2022, 8:26 PMpluginDownloadUrl
the user never has to run pulumi plugin install
they just do pip3 install <name>
and it autoacuires the plugindelightful-napkin-38557
06/02/2022, 8:26 PMbillowy-army-68599
06/02/2022, 8:27 PMdelightful-napkin-38557
06/02/2022, 8:27 PMbillowy-army-68599
06/02/2022, 8:38 PMdelightful-napkin-38557
06/02/2022, 8:38 PMbillowy-army-68599
06/02/2022, 8:39 PMdelightful-napkin-38557
06/02/2022, 8:39 PMbillowy-army-68599
06/02/2022, 8:39 PMdelightful-napkin-38557
06/02/2022, 8:39 PMbillowy-army-68599
06/02/2022, 8:40 PMdelightful-napkin-38557
06/02/2022, 8:41 PMacoustic-tiger-77630
06/02/2022, 8:51 PMresource plugin zpa is expected to have version >=0.0.1-alpha.1654199673, but has 0.0.1-alpha.1653983237+fff10f33.dirty; the wrong version may be on your path, or this may be a bug in the plugin
This is what was generated in the SDK under the path sdk/python/bin/dist/
Any ideas here, what I might be missing?billowy-army-68599
06/02/2022, 8:54 PM$PATH
with a git working tree without commits 🙂acoustic-tiger-77630
06/02/2022, 9:32 PMbillowy-army-68599
06/02/2022, 9:34 PMwhich pulumi-resource-zpa
return?pulumi-resource-zpa
is somewhere on your $PATH
or in ~/.pulumi/plugins
somewhereacoustic-tiger-77630
06/02/2022, 9:44 PMbillowy-army-68599
06/02/2022, 9:47 PMacoustic-tiger-77630
06/02/2022, 10:02 PM