puppetlabs / puppet-module-gems

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

Ruby 3 support #166

Open albertvaka opened 3 years ago

albertvaka commented 3 years ago

I realized there's no puppet-module-posix-default-r3.0 package on rubygems.

Is Ruby 3 not supported?

bastelfreak commented 3 years ago

https://tickets.puppetlabs.com/browse/MODULES-11161 sadly puppet doesn't care that much about supporting modern rubies / enabling people to at lease use it. This is an ongoing issue since years and repeats with every Ruby release (the next one is in 3 months)

bastelfreak commented 3 years ago

Hey puppet, would it be possible that some of you could take a look at this?

smortex commented 2 years ago

I realized there's no puppet-module-posix-default-r3.0 package on rubygems.

Nor puppet-module-posix-default-r3.1 :trollface:

More seriously we (FreeBSD community) are interested in seeing some progress in respect to this now that we ship Ruby 3.0 by default. I just had to mark the PDK as broken with Ruby 3.0/3.1 because the code does not work with Ruby 3.0+ (trivial fix) and the generated code depend on gems that do not exit (this PR :wink:).

pingram3030 commented 2 years ago

Ruby 2.6 is EOL and 2.7 is in security maintenance only with an alleged EOL of 7 months from now. Only 3.x is being supported by Ruby, so we need ruby 3.x versions of all gems this repo creates a.s.a.p.

bastelfreak commented 2 years ago

I already mentioned it in https://tickets.puppetlabs.com/browse/MODULES-11161. I think the whole idea of hardcoding the ruby version in the gem name is obsolute. Instead of continuing this for Ruby 3.0 and 3.1, I suggest to drop the whole idea and create the gems without the ruby versions.

pmcmaw commented 1 year ago

Hey everyone! This is something the team decided to not go ahead with.

In order to move forward and make use of Puppet 8 with Ruby 3 it is advised that you move away and no longer use puppet-module-gems.

This blog post provides information on how to do this: https://puppetlabs.github.io/content-and-tooling-team/blog/posts/2023-01-10-remove-puppet-module-gems/