Closed timirnich closed 2 years ago
If you've installed vagrant through the official binary, vagrant ships with it's own ruby (not 100% sure about the brew install, but most likely the same)
I assume you ran into an issue where you got an error message during install like that:
io-event requires Ruby version >= 3.0. The current ruby version is 2.7.4.191.
Long story short, it seems vagrant has as an issue resolving sub-sub-dependencies correctly, when installing plugins.
I'll try and publish a workaround/fix when I find the time
@timirnich The quick fix in #70 is not really a good fix, but would work for you. I'm not comfortable merging it (yet). As a workaround, you might build the plugin yourself:
$ git clone --single-branch --branch fix/69-vagrant-depenedency-resolve-workaround git@github.com:BerlinVagrant/vagrant-dns.git
$ cd vagrant-dns
$ export TEST_RUBY_VERSION='2.6.8' # or whatever ruby version you have working on your system (< 3.0)
$ export TEST_VAGRANT_VERSION=v2.2.19
$ bundle install
$ rake build
$ cd # leave the plugin checkout, it would confuse vagrant in the next step
$ vagrant plugin install path/to/vagrant-dns/pkg/vagrant-dns-2.2.1.gem
Thank you! I'll try asap...
released fix as v2.2.2
/cc @polarbirke
I'm failing to install vagrant-dns although I'm on the latest vagrant version (as per instructions in Readme.md) and installed ruby 3.1.0 via frum. It seems vagrant still sees the default old ruby version that comes with MacOS.
Any ideas how I can convince vagrant to use the right ruby version?