garethr / puppet-module-skeleton

A pretty opinionated skeleton for writing your own puppet modules
Apache License 2.0
309 stars 152 forks source link

Conflicting dependencies #121

Open reppard opened 8 years ago

reppard commented 8 years ago

I was having troubles getting beaker to run out of the box on a freshly generated module. I was using a newer version of Ruby than is supported.

Per beaker's README we can use:

This creates problems because in the development group of the Gemfile, "guard-rake" is required.

guard-rake requires guard which requires listen which requires ruby_dep which requires Ruby 2.2.3 or greater and this causes bundle install to fail because of beaker's version dependencies.

The workaround for me has been to remove guard from the gem file and use Ruby 2.1.1

robinbowes commented 8 years ago

I ran into similar issues today - bundle install wouldn't complete.

I'm running on Fedora 23 with ruby 2.2.4 (system).

I ran into the "puppet 3.x won't run on ruby 2.2" problem which I fixed by installing ruby 1.9.3-p551 (using rbenv) and dropping using "rbenv local 1.9.3-p551" in the repo in question.

I then ran into the ruby_dep issue which I fixed by pinning listen to 3.0.6 in the Gemfile:

  gem 'listen', "<= 3.0.6"

I'm currently hitting a problem with vagrant:

Bundler could not find compatible versions for gem "bundler":
  In Gemfile:
    vagrant (= 1.8.1) was resolved to 1.8.1, which depends on
      bundler (<= 1.10.6, >= 1.5.2)

  Current Bundler version:
    bundler (1.11.2)
This Gemfile requires a different version of Bundler.
Perhaps you need to update Bundler by running `gem install bundler`?

Could not find gem 'bundler (<= 1.10.6, >= 1.5.2)', which is required by gem 'vagrant (= 1.8.1)', in any of the sources.