OctopusDeploy / OctopusDSC

| Public | A PowerShell DSC resource for installing Octopus Deploy & Tentacles
Other
1 stars 61 forks source link

Installing 'vagrant-winrm-file-download' fails #295

Open Musashi178 opened 2 years ago

Musashi178 commented 2 years ago

Hi,

I tried to setup a local dev environment, but running .\build-hyperv.ps1 or .\build-virtualbox.ps1 both failed during the installation of the 'vagrant-winrm-file-download' plugin:

❯ .\build-virtualbox.ps1 -SkipPester
Transcript started, output file is .\vagrant-virtualbox.log
Vagrant installed - good.
VirtualBox installed - good.
Vagrant plugin vagrant-winrm-syncedfolders exists - good.
Vagrant plugin vagrant-winrm-file-download not installed.
Installing the 'vagrant-winrm-file-download' plugin. This can take a few minutes...
Vagrant failed to properly resolve required dependencies. These
errors can commonly be caused by misconfigured plugin installations
or transient network issues. The reported error is:

Unable to resolve dependency: user requested 'vagrant-winrm-file-download (> 0)'
Failed to automatically install vagrant plugin vagrant-winrm-file-download
matt-richardson commented 2 years ago

Sorry about that, @Musashi178 - that's not a great experience.

Here's the code we use on our (ubuntu) docker image that we use to pre-install that plugin:

curl --fail --silent -L "https://github.com/OctopusDeploy/vagrant-winrm-file-download/releases/download/0.0.1/vagrant-winrm-file-download-0.0.1.gem" -o /tmp/vagrant-winrm-file-download-0.0.1.gem
vagrant plugin install /tmp/vagrant-winrm-file-download-0.0.1.gem

Hope that helps!