Hi team, are we planning to add support for instal...
# automation-api
b
Hi team, are we planning to add support for installing plugins locally using the automation API ? cc @little-cartoon-10569
l
I'm trying to imagine a use case. As I understand it, in order to run the automation-api program, you need to run
npm install
or the equivalent for your runtime. And that process installs the plugins. So by the time automation-api is running, the plugins are installed. Is this not what you're seeing? What is the problem you're looking to solve?
b
Actually it’s more of a dev workflow. I haven’t published the provider and will be making changes but when using automation API to create the stack using the resources managed by local provider, I have no option to load the plugin through the automation API itself.
l
And you can't install it using the runtime's normal package installation functionality? Just from a local repository? Another option would be to update your "build-and-install-locally" script on the plugin side to include copying it to the local plugin directory if it exists.
I'm afraid I know next to nothing about golang and its packages, but I presume something like that would be supported?
b
Thanks for this tenwit. I think the script to copy the plugin to plugin cache would work.
r
FWIW I'm having this same issue. Glad I found this discussion! I'll copy the plugin to my cache
b
I did the same and in the naming scheme it expects and it worked nicely. So confirming it works !!
r
did you copy a .lock file or anything?
b
Nope, I didn’t
It worked without it for me atleast
r
Thanks! will give it a shot
b
Cool, do revert if any issues and I’ll double check if I did anything different