hiera-eyaml icon indicating copy to clipboard operation
hiera-eyaml copied to clipboard

Ruby >= 2.5.0 silently required since hiera-eyaml v3.2.3?

Open gdubicki opened this issue 2 years ago • 0 comments

Hi,

I was trying to install the latest gem on a Centos 7 and Puppet 5 system but it failed stating that Ruby >= 2.5.0 is required:

# /opt/puppetlabs/puppet/bin/ruby --version
ruby 2.4.10p364 (2020-03-31 revision 67879) [x86_64-linux]

# /opt/puppetlabs/puppet/bin/gem install hiera-eyaml
Fetching: hiera-eyaml-3.3.0.gem (100%)
ERROR:  Error installing hiera-eyaml:
        hiera-eyaml requires Ruby version < 4, >= 2.5.0.

This has been introduced by this commit https://github.com/voxpupuli/hiera-eyaml/commit/1cdb0a9bbb3c7dd61c3bf53cadb62b96a0bc22f6 but I don't see any reason for it.

I know that Ruby 2.4 and Puppet 5 are EOL so I don't really complain that it did happen, but it could have been dealt with in a better way:

  • major version should go up as it is a backward-incompatible change,
  • it should come with docs update - the README still have an explicit requirements section + not mention hiera 3 anymore.

I might provide PRs to resolve these issues but perhaps there were some reasons to do this is it was done?

gdubicki avatar Nov 24 '22 13:11 gdubicki