Use two different versions of vagrant on the same system

23 views
Skip to first unread message

Misha Behersky

unread,
Aug 14, 2018, 1:50:45 AM8/14/18
to Vagrant
Hi, I'm trying to use Vagrant 2.1 and Vagrant 1.8 at the same time on the one Ubuntu machine.
Therefore I'm building them manually via 
git clone https://github.com/hashicorp/vagrant.git vagrant-1.8.4/
cd vagrant-1.8.4/
git checkout v1.8.4
bundle install
This doesn't work as I receive such an error
Bundler could not find compatible versions for gem "rspec": In Gemfile: rspec (~> 2.14.0)
vagrant-spec was resolved to 0.0.1, which depends on rspec (~> 3.5.0)
Is it the right way to make two different versions of Vagrant to work simultaneously? Is there a way I can accomplish that?
My environment:
$ bundler --version
Bundler version 1.16.3
$ ruby --version
ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-linux-gnu]

Alvaro Miranda Aguilera

unread,
Aug 14, 2018, 9:33:32 AM8/14/18
to vagra...@googlegroups.com
why?

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/79fe97ae-b282-4326-b158-06cc83da92a6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
Alvaro

Misha Behersky

unread,
Aug 15, 2018, 10:07:59 AM8/15/18
to Vagrant
Because I usually use 2.1 (as it newer stable version supporting new features), but for one particular case (I need this plugin support) seems like 1.8 is required (and not 2.0 or above).

Misha Behersky

unread,
Aug 15, 2018, 10:08:59 AM8/15/18
to Vagrant
Actually, I found one way to accomplish this (not building two versions from sources) but it works for me now. Link to the article.

Alvaro Miranda Aguilera

unread,
Aug 16, 2018, 1:46:15 AM8/16/18
to vagra...@googlegroups.com
Since that plugin is a remote builder plugin, why not instal that vagrant version + plugin inside a VM ?

The official way to instal Vagrant is by the installer.

And when using bundler/etc is only meant to development, not all external functionality may work, ie external plugins.

Alvaro


For more options, visit https://groups.google.com/d/optout.


--
Alvaro

Reply all
Reply to author
Forward
0 new messages