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

Cannot install gems to develop sensu-puppet #301

Closed
nhinds opened this issue Jan 25, 2015 · 2 comments
Closed

Cannot install gems to develop sensu-puppet #301

nhinds opened this issue Jan 25, 2015 · 2 comments

Comments

@nhinds
Copy link
Contributor

nhinds commented Jan 25, 2015

I can't run bundle to install the required gems to develop sensu-puppet:

$ bundle
Fetching https://github.com/rodjek/rspec-puppet.git
Cloning into bare repository '/home/nh/.rvm/gems/ruby-2.0.0-p353@sensu-puppet/cache/bundler/git/rspec-puppet-1793e2620b654a6857b921dabd1d2ad625f6563f'...
remote: Counting objects: 2106, done.
remote: Total 2106 (delta 0), reused 0 (delta 0)
Receiving objects: 100% (2106/2106), 350.23 KiB | 199.00 KiB/s, done.
Resolving deltas: 100% (916/916), done.
Checking connectivity... done.
Cloning into '/home/nh/.rvm/gems/ruby-2.0.0-p353@sensu-puppet/bundler/gems/rspec-puppet-43fea603a5f3'...
done.
Fetching gem metadata from https://rubygems.org/..........
Fetching gem metadata from https://rubygems.org/..........
Resolving dependencies...
Bundler could not find compatible versions for gem "rspec":
  In Gemfile:
    rspec-puppet (>= 0) ruby depends on
      rspec (~> 2.0) ruby

    beaker-rspec (>= 0) ruby depends on
      rspec (3.1.0)

Running bundle --without=system_tests (to avoid the beaker-rspec dependency) does not work either. Deleting the :system_tests group from Gemfile allows this to work, but obviously I cannot run system tests with this setup.

Presumably this works for somebody - could you please commit your Gemfile.lock so that other people's systems use the same versions of the required gems?

@jlambert121
Copy link
Contributor

I'm not a fan of committing Gemfile.locks for 2 reasons - the biggest one is it breaks travis, but it also causes issues for those developing on older versions of ruby. Unfortunately 1.8.7 is still alive and kicking.

Here is my Gemfile.lock

GIT
  remote: https://github.com/rodjek/rspec-puppet.git
  revision: 43fea603a5f308731e9b51337fb9adc66fa72d18
  tag: v2.0.0
  specs:
    rspec-puppet (2.0.0)
      rspec (~> 2.0)

GEM
  remote: https://rubygems.org/
  specs:
    CFPropertyList (2.3.0)
    activesupport (4.2.0)
      i18n (~> 0.7)
      json (~> 1.7, >= 1.7.7)
      minitest (~> 5.1)
      thread_safe (~> 0.3, >= 0.3.4)
      tzinfo (~> 1.1)
    addressable (2.3.6)
    archive-tar-minitar (0.5.2)
    autoparse (0.3.3)
      addressable (>= 2.3.1)
      extlib (>= 0.9.15)
      multi_json (>= 1.0.0)
    aws-sdk (1.60.2)
      aws-sdk-v1 (= 1.60.2)
    aws-sdk-v1 (1.60.2)
      json (~> 1.4)
      nokogiri (>= 1.4.4)
    beaker (2.2.0)
      aws-sdk (~> 1.57)
      docker-api
      fission (~> 0.4)
      fog (~> 1.25)
      google-api-client (~> 0.7)
      hocon (~> 0.0.4)
      inifile (~> 2.0)
      json (~> 1.8)
      minitest (~> 5.4)
      net-scp (~> 1.2)
      net-ssh (~> 2.9)
      rbvmomi (~> 1.8)
      unf (~> 0.1)
    beaker-rspec (4.0.0)
      beaker (~> 2.0)
      rspec
      serverspec (~> 1.0)
      specinfra (~> 1.0)
    builder (3.2.2)
    celluloid (0.16.0)
      timers (~> 4.0.0)
    coderay (1.1.0)
    diff-lcs (1.2.5)
    docile (1.1.5)
    docker-api (1.17.0)
      archive-tar-minitar
      excon (>= 0.38.0)
      json
    excon (0.43.0)
    extlib (0.9.16)
    facter (1.7.6)
    faraday (0.9.1)
      multipart-post (>= 1.2, < 3)
    ffi (1.9.6)
    fission (0.5.0)
      CFPropertyList (~> 2.2)
    fog (1.26.0)
      fog-atmos
      fog-brightbox (~> 0.4)
      fog-core (~> 1.27, >= 1.27.1)
      fog-ecloud
      fog-json
      fog-profitbricks
      fog-radosgw (>= 0.0.2)
      fog-sakuracloud (>= 0.0.4)
      fog-softlayer
      fog-storm_on_demand
      fog-terremark
      fog-vmfusion
      fog-voxel
      fog-xml (~> 0.1.1)
      ipaddress (~> 0.5)
      nokogiri (~> 1.5, >= 1.5.11)
    fog-atmos (0.1.0)
      fog-core
      fog-xml
    fog-brightbox (0.7.1)
      fog-core (~> 1.22)
      fog-json
      inflecto (~> 0.0.2)
    fog-core (1.27.3)
      builder
      excon (~> 0.38)
      formatador (~> 0.2)
      mime-types
      net-scp (~> 1.1)
      net-ssh (>= 2.1.3)
    fog-ecloud (0.0.2)
      fog-core
      fog-xml
    fog-json (1.0.0)
      multi_json (~> 1.0)
    fog-profitbricks (0.0.1)
      fog-core
      fog-xml
      nokogiri
    fog-radosgw (0.0.3)
      fog-core (>= 1.21.0)
      fog-json
      fog-xml (>= 0.0.1)
    fog-sakuracloud (0.1.1)
      fog-core
      fog-json
    fog-softlayer (0.3.27)
      fog-core
      fog-json
    fog-storm_on_demand (0.1.0)
      fog-core
      fog-json
    fog-terremark (0.0.3)
      fog-core
      fog-xml
    fog-vmfusion (0.0.1)
      fission
      fog-core
    fog-voxel (0.0.2)
      fog-core
      fog-xml
    fog-xml (0.1.1)
      fog-core
      nokogiri (~> 1.5, >= 1.5.11)
    formatador (0.2.5)
    google-api-client (0.8.2)
      activesupport (>= 3.2)
      addressable (~> 2.3)
      autoparse (~> 0.3)
      extlib (~> 0.9)
      faraday (~> 0.9)
      launchy (~> 2.4)
      multi_json (~> 1.10)
      retriable (~> 1.4)
      signet (~> 0.6)
    guard (2.11.1)
      formatador (>= 0.2.4)
      listen (~> 2.7)
      lumberjack (~> 1.0)
      nenv (~> 0.1)
      notiffany (~> 0.0)
      pry (>= 0.9.12)
      shellany (~> 0.0)
      thor (>= 0.18.1)
    guard-rake (1.0.0)
      guard
      rake
    hiera (1.3.4)
      json_pure
    highline (1.6.21)
    hitimes (1.2.2)
    hocon (0.0.6)
    i18n (0.7.0)
    inflecto (0.0.2)
    inifile (2.0.2)
    ipaddress (0.8.0)
    json (1.8.2)
    json_pure (1.8.2)
    jwt (1.2.0)
    launchy (2.4.3)
      addressable (~> 2.3)
    listen (2.8.5)
      celluloid (>= 0.15.2)
      rb-fsevent (>= 0.9.3)
      rb-inotify (>= 0.9)
    lumberjack (1.0.9)
    metaclass (0.0.4)
    metadata-json-lint (0.0.4)
      json
      spdx-licenses (~> 1.0)
    method_source (0.8.2)
    mime-types (1.25.1)
    mini_portile (0.6.2)
    minitest (5.5.1)
    mocha (1.1.0)
      metaclass (~> 0.0.1)
    multi_json (1.10.1)
    multipart-post (2.0.0)
    nenv (0.1.1)
    net-scp (1.2.1)
      net-ssh (>= 2.6.5)
    net-ssh (2.9.2)
    nokogiri (1.6.5)
      mini_portile (~> 0.6.0)
    notiffany (0.0.3)
      nenv (~> 0.1)
      shellany (~> 0.0)
    pry (0.10.1)
      coderay (~> 1.1.0)
      method_source (~> 0.8.1)
      slop (~> 3.4)
    puppet (3.7.3)
      facter (> 1.6, < 3)
      hiera (~> 1.0)
      json_pure
    puppet-blacksmith (3.1.1)
      puppet (>= 2.7.16)
      rest-client
    puppet-lint (1.0.1)
    puppet-syntax (1.4.1)
      rake
    puppetlabs_spec_helper (0.8.2)
      mocha
      puppet-lint
      puppet-syntax
      rake
      rspec
      rspec-puppet
    rake (10.4.2)
    rb-fsevent (0.9.4)
    rb-inotify (0.9.5)
      ffi (>= 0.5.0)
    rbvmomi (1.8.2)
      builder
      nokogiri (>= 1.4.1)
      trollop
    rdoc (4.2.0)
      json (~> 1.4)
    rest-client (1.6.8)
      mime-types (~> 1.16)
      rdoc (>= 2.4.2)
    retriable (1.4.1)
    rspec (2.99.0)
      rspec-core (~> 2.99.0)
      rspec-expectations (~> 2.99.0)
      rspec-mocks (~> 2.99.0)
    rspec-core (2.99.2)
    rspec-expectations (2.99.2)
      diff-lcs (>= 1.1.3, < 2.0)
    rspec-its (1.0.1)
      rspec-core (>= 2.99.0.beta1)
      rspec-expectations (>= 2.99.0.beta1)
    rspec-mocks (2.99.3)
    serverspec (1.16.0)
      highline
      net-ssh
      rspec (~> 2.99)
      rspec-its
      specinfra (~> 1.27)
    shellany (0.0.1)
    signet (0.6.0)
      addressable (~> 2.3)
      extlib (~> 0.9)
      faraday (~> 0.9)
      jwt (~> 1.0)
      multi_json (~> 1.10)
    simplecov (0.9.1)
      docile (~> 1.1.0)
      multi_json (~> 1.0)
      simplecov-html (~> 0.8.0)
    simplecov-html (0.8.0)
    slop (3.6.0)
    spdx-licenses (1.0.0)
      json
    specinfra (1.27.5)
    thor (0.19.1)
    thread_safe (0.3.4)
    timers (4.0.1)
      hitimes
    trollop (2.1.1)
    tzinfo (1.2.2)
      thread_safe (~> 0.1)
    unf (0.1.4)
      unf_ext
    unf_ext (0.0.6)
    vagrant-wrapper (2.0.1)

PLATFORMS
  ruby

DEPENDENCIES
  beaker-rspec
  facter
  guard-rake
  json
  metadata-json-lint (= 0.0.4)
  puppet
  puppet-blacksmith
  puppet-lint (= 1.0.1)
  puppet-syntax
  puppetlabs_spec_helper
  rake
  rest-client (= 1.6.8)
  rspec-puppet!
  serverspec
  simplecov
  vagrant-wrapper

@nhinds
Copy link
Contributor Author

nhinds commented Jan 26, 2015

I don't use Travis so I wasn't aware of that limitation. This helped me get my environment working, thanks!

@nhinds nhinds closed this as completed Jan 26, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants