-
Notifications
You must be signed in to change notification settings - Fork 74
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
Plugin won't load when installed as external plugin #119
Comments
After a lot of trial and error I found out that packer starts the external plugin when the builders are called With But I can't figure out why this is the case. |
@sebastian-de thank you for this detailed issue, for your discovery, and for your fix. I'll work on getting this released. As for your questions, allow me to explain. Packer uses the following naming convention for all external plugins For backwards compatibility with version prior to Packer v1.7.0 all external plugins are bundled into Packer using the hardcoded name, hence why the template for Proxmox does not fail as there is a plugin that provides I hope this helps answer your question on why things are working the way they are. |
@nywilken thank you for your detailed explanation. |
Overview of the Issue
I'd like to contribute to this plugin, but I'm stuck at the very beginning. I read CONTRIBUTING.md, did some changes and ran
make dev
. The resulting plugin gets found when running packer, but packer loads the internal plugin instead of the external one. This doesn't happen when I installpacker-plugin-amazon
so I assume this is a bug inpacker-plugin-proxmox
.I also tried to install the plugin in the directory packer is run from, but packer still loads the internal plugin.
Reproduction Steps
make dev
packer validate .
in a directory with a file using any proxmox-* builder (withoutrequired_plugins
being set)Plugin and Packer version
packer-plugin-proxmox built from
main
Packer v1.8.4
Operating system and Environment details
Fedora 36, packer installed via go (I also tried packer from the Hashicorp Fedora repository, the reult is the same)
Log Fragments and crash.log files
For comparison I included the relevant log parts of both the proxmox and the amazon plugin. You can see that both plugins are found, but only the exernal amazon plugin gets loaded.
packer-plugin-proxmox
packer-plugin-amazon
Full log for packer-plugin-proxmox
The text was updated successfully, but these errors were encountered: