Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support dev setting vagrant-spec version from env #1344

Merged
merged 1 commit into from Sep 11, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 4 additions & 1 deletion Gemfile
Expand Up @@ -27,7 +27,10 @@ group :development do
vagrant_gem_version = Gem::Version.new('2.2.8')
end

if vagrant_gem_version <= Gem::Version.new('2.2.7')
vagrant_spec_verison = ENV['VAGRANT_SPEC_VERSION']
if !vagrant_spec_verison.nil? && !vagrant_spec_verison.empty?
gem 'vagrant-spec', :github => 'hashicorp/vagrant-spec', :ref => vagrant_spec_verison
elsif vagrant_gem_version <= Gem::Version.new('2.2.7')
gem 'vagrant-spec', :github => 'hashicorp/vagrant-spec', :ref => '161128f2216cee8edb7bcd30da18bd4dea86f98a'
else
gem 'vagrant-spec', :github => 'hashicorp/vagrant-spec', :branch => "main"
Expand Down