hashicorp / vagrant

Vagrant is a tool for building and distributing development environments.
https://www.vagrantup.com
Other
26.28k stars 4.43k forks source link

Vagrant plugins cannot be installed anymore for vagrant 2.4.2 under Windows #13527

Open dib42 opened 3 hours ago

dib42 commented 3 hours ago

In the Debug output and Steps to reproduce vagrant-env plugin is used, but that happened to other plugins I am using (vagrant-disksize and vagrant-vbguest) as well as picking some random plugins from here.

It seems that adding the dependency of logger (this PR) breaks the installation of (probably) all plugins under Windows.

When opening a cmd in C:\Program Files\Vagrant\embedded\mingw64\bin and run gem search -be logger

C:\Program Files\Vagrant\embedded\mingw64\bin>gem search -be logger

*** LOCAL GEMS ***

logger (1.6.0)

*** REMOTE GEMS ***

logger (1.6.1)

Debug output

https://gist.github.com/dib42/7113c057c40dac93760afe4b813cb763

Expected behavior

Vagrant should install the plugin

Actual behavior

Vagrant does not install the plugin because of a ruby dependency problem

Reproduction information

Vagrant version

Vagrant 2.4.2

Host operating system

Windows 10 22H2

Guest operating system

Ubuntu 22.04

Steps to reproduce

  1. Open powershell
  2. Run vagrant plugin install vagrant-env --verbose --debug-timestamp

Vagrantfile

Just for the bug report requirements, as this is not relevant for the bug

# Copy-paste your Vagrantfile here. Remove any sensitive information such as passwords, authentication tokens, or email addresses.
Vagrant.configure("2") do |config|
  config.vm.box = "ubuntu/jammy64"
end
PaulNeumann commented 2 hours ago

Same issue on Windows 11 23H2.