Due to this vagrant testing issue we cannot reliably test vagrant versions >= 2.2.5 using the git specifier in our Gemfile. Until the upstream bug is merged, this issue will remain open.
Example of the bug:
$ bundle exec vagrant plugin list
Vagrant failed to initialize at a very early stage:
The plugins failed to initialize correctly. This may be due to manual
modifications made within the Vagrant home directory. Vagrant can
attempt to automatically correct this issue by running:
vagrant plugin repair
If Vagrant was recently updated, this error may be due to incompatible
versions of dependencies. To fix this problem please remove and re-install
all plugins. Vagrant can attempt to do this automatically by running:
vagrant plugin expunge --reinstall
Or you may want to try updating the installed plugins to their latest
versions:
vagrant plugin update
Error message given during initialization: undefined method `runtime_dependencies' for nil:NilClas
source 'https://rubygems.org'
#### Added due to https://groups.google.com/forum/#!topic/vagrant-up/J8J6LmhzBqM/discussion
embedded_locations = %w(/Applications/Vagrant/embedded /opt/vagrant/embedded)
embedded_locations.each do |p|
ENV['VAGRANT_INSTALLER_EMBEDDED_DIR'] = p if File.directory?(p)
end
unless ENV.key?('VAGRANT_INSTALLER_EMBEDDED_DIR')
$stderr.puts "Couldn't find a packaged install of vagrant, and we need this"
$stderr.puts 'in order to make use of the RubyEncoder libraries.'
$stderr.puts 'I looked in:'
embedded_locations.each do |p|
$stderr.puts " #{p}"
end
end
#### End Added due to https://groups.google.com/forum/#!topic/vagrant-up/J8J6LmhzBqM/discussion
gem 'rake'
gem 'rspec', '~> 3.1'
gem 'rspec-its', '~> 1.0'
group :development do
gem 'guard-rspec'
gem 'mini_portile2'
gem 'pry'
gem 'rb-readline'
gem 'redcarpet'
gem 'serverspec'
gem 'yard', '~> 0.9.11'
gem 'vagrant',
git: 'https://github.com/hashicorp/vagrant.git',
tag: ENV.fetch('VAGRANT_VERSION', 'v2.2.6')
end
# when testing our plugin we need to make sure some vagrant plugins are installed
# however, the syntax `Vagrant.require_plugin 'vagrant-proxyconf' was deprecated
# and this is the future for using testing vagrant behind bundler.
# https://stackoverflow.com/questions/19492738/demand-a-vagrant-plugin-within-the-vagrantfile
group :plugins do
gem 'vagrant-proxyconf', path: __dir__
end
Problem Statement:
Due to this vagrant testing issue we cannot reliably test vagrant versions >= 2.2.5 using the
git
specifier in ourGemfile
. Until the upstream bug is merged, this issue will remain open.Example of the bug:
$ bundle exec vagrant plugin list
$ bundle show
$ cat Gemfile