puppetlabs / puppet-module-gems

dependency management gems for all puppet modules
Apache License 2.0
4 stars 26 forks source link

updated gems broke ruby 2.1.9 #118

Closed logicminds closed 4 years ago

logicminds commented 5 years ago

Describe the Bug

Gem::InstallError: i18n requires Ruby version >= 2.3.0.
An error occurred while installing i18n (1.6.0), and Bundler cannot continue.
Make sure that `gem install i18n -v '1.6.0' --source 'https://rubygems.org/'` succeeds before bundling.

In Gemfile:
  puppet-module-posix-dev-r2.1 was resolved to 0.4.2, which depends on
    activesupport was resolved to 5.2.3, which depends on
      i18n

Gem::InstallError: public_suffix requires Ruby version >= 2.3.
An error occurred while installing public_suffix (4.0.1), and Bundler cannot continue.
Make sure that `gem install public_suffix -v '4.0.1' --source 'https://rubygems.org/'` succeeds before bundling.

In Gemfile:
  puppet-module-posix-dev-r2.1 was resolved to 0.4.2, which depends on
    metadata-json-lint was resolved to 2.2.0, which depends on
      json-schema was resolved to 2.8.1, which depends on
        addressable was resolved to 2.7.0, which depends on
          public_suffix

Gem::InstallError: parallel requires Ruby version >= 2.2.
An error occurred while installing parallel (1.17.0), and Bundler cannot continue.
Make sure that `gem install parallel -v '1.17.0' --source 'https://rubygems.org/'` succeeds before bundling.

In Gemfile:
  puppet-module-posix-dev-r2.1 was resolved to 0.4.2, which depends on
    dependency_checker was resolved to 0.2.0, which depends on
      parallel

Gem::InstallError: net-ssh requires Ruby version >= 2.2.6.
An error occurred while installing net-ssh (5.2.0), and Bundler cannot continue.
Make sure that `gem install net-ssh -v '5.2.0' --source 'https://rubygems.org/'` succeeds before bundling.

In Gemfile:
  puppet-module-posix-dev-r2.1 was resolved to 0.4.2, which depends on
    serverspec was resolved to 2.41.5, which depends on
      specinfra was resolved to 2.77.1, which depends on
        net-scp was resolved to 2.0.0, which depends on
          net-ssh

pdk (FATAL): Unable to install missing Gemfile dependencies.

Expected Behavior

should have resolved the dependencies

Steps to Reproduce

Must be using ruby 2.1.9 Must be using pdk as the gem

docker run -ti --rm ruby:2.1.9 /bin/bash
gem install addressable -v 2.6.0 -N
gem install pdk -N
pdk new module

Environment

logicminds commented 5 years ago

I think the following gem pins might fix the problem

gem "addressable", "2.6.0"
gem "net-ssh", "4.2.0"