You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a simple Vagrantfile that uses the vagrant-host-shell plugin, which implements the :host_shell provisioner. Add a line to the Vagrantfile using it, ala:
config.vm.provision :host_shell, inline: "echo 'Found backup file; loading into development database.'"
Important: do not install the plugin yet, or uninstall it if it's already present.
vagrant up
Actual results
>> vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
There are errors in the configuration of this machine. Please fix
the following errors and try again:
vm:
* The '' provisioner could not be found.
There are two problems here. First, the dependency on vagrant-host-shell is implicit. A developer new to this project now has to hunt around to figure out what's missing. Perhaps there's a pattern for expressing plugin dependencies in Vagrantfile, but that wasn't clear from the docs. (And I note that an old declaration pattern was deprecated.) For sanity, I'll now have to code something ad-hoc to provide a clear, actionable error.
Second, the messaging about the missing provider has an outright bug, in that it's not reporting that :host_shell was the provisioner. (E.g. The '' provisioner could not be found)
Expected results
It should be possible to declare plugin dependencies so that missing plugins can be clearly reported, enabling developers to immediately fix the problem and get back to work.
The missing provisioner should be reported by the identifier used in the file, :host_shell.
Related issues #1700, which is closed but the outsourced solution (Vundler) is long-abandoned, and never worked with Vagrant > 1.3.
The text was updated successfully, but these errors were encountered:
Repro steps
vagrant-host-shell
plugin, which implements the:host_shell
provisioner. Add a line to the Vagrantfile using it, ala:vagrant up
Actual results
There are two problems here. First, the dependency on
vagrant-host-shell
is implicit. A developer new to this project now has to hunt around to figure out what's missing. Perhaps there's a pattern for expressing plugin dependencies in Vagrantfile, but that wasn't clear from the docs. (And I note that an old declaration pattern was deprecated.) For sanity, I'll now have to code something ad-hoc to provide a clear, actionable error.Second, the messaging about the missing provider has an outright bug, in that it's not reporting that
:host_shell
was the provisioner. (E.g.The '' provisioner could not be found
)Expected results
:host_shell
.Related issues
#1700, which is closed but the outsourced solution (Vundler) is long-abandoned, and never worked with Vagrant > 1.3.
The text was updated successfully, but these errors were encountered: