c10l / vagrant-butcher

Delete Chef client and node when destroying Vagrant VM
MIT License
124 stars 12 forks source link

Celluloid dependency version collision w/Vagrant 1.5 #46

Closed sneal closed 10 years ago

sneal commented 10 years ago

Vagrant plugin install fails with a celluloid conflict. I have other plugins installed that use a newer version of celluloid, so I'm not entirely sure if this happens on a clean Vagrant 1.5 install.

vagrant plugin install vagrant-butcher
Installing the 'vagrant-butcher' plugin. This can take a few minutes...
The plugin(s) can't be installed due to the version conflicts below.
This means that the plugins depend on a library version that conflicts
with other plugins or Vagrant itself, creating an impossible situation
where Vagrant wouldn't be able to load the plugins.

You can fix the issue by either removing a conflicting plugin or
by contacting a plugin author to see if they can address the conflict.

Vagrant could not find compatible versions for gem "celluloid":
  In Gemfile:
    vagrant-berkshelf (>= 0) ruby depends on
      celluloid (~> 0.13.0) ruby

    vagrant (= 1.5.0) ruby depends on
      celluloid (0.15.2)
c10l commented 10 years ago

No, it won't. If you look closely, you'll see that Butcher depends on "ridley", ">= 1.5.3" (https://github.com/cassianoleal/vagrant-butcher/blob/master/vagrant-butcher.gemspec#L21), so not a problem there.

Also, by looking at the error message, it's clear that the offending plugin is actually vagrant-berkshelf, not Butcher. vagrant-berkshelf is not compatible with Vagrant 1.5 at all, as can be seen on https://github.com/berkshelf/vagrant-berkshelf/issues/156, https://github.com/berkshelf/vagrant-berkshelf/pull/158 and https://github.com/berkshelf/vagrant-berkshelf/pull/159.

sneal commented 10 years ago

You're right about the gem constraint, I somehow read that as '~> 1.5.3'. I got it to work finally. It seems to matter which order you install your Vagrant plugins.

c10l commented 10 years ago

:) Yes, I have seen the plugin install ordering issue before. Glad you got it to work!