Jira (PUP-11844) puppet 8.0.0 gem has an incorrect required ruby version

8 views
Skip to first unread message

Josh Cooper (Jira)

unread,
Apr 26, 2023, 11:44:02 AM4/26/23
to puppe...@googlegroups.com
Josh Cooper created an issue
 
Puppet / Bug PUP-11844
puppet 8.0.0 gem has an incorrect required ruby version
Issue Type: Bug Bug
Affects Versions: PUP 8.0.0
Assignee: Unassigned
Created: 2023/04/26 8:43 AM
Fix Versions: PUP 8.0.1
Priority: Normal Normal
Reporter: Josh Cooper

The puppet 8.0.0 gem on rubygems. org lists the minimum required version as >= 2.7, but will fail to run if the actual ruby version is < 3.1. So module CI using Ruby 2.7 or 3.0 with unconstrained puppet versions will pull in the puppet 8 gem and fail. I'm going to file a pdk lint check for unconstrained puppet versions, but that being said, the puppet gem versioning should be consistent.

This issue was caused because we have two sources of truths for gem metadata. We bumped .gemspec, but not ext/project_data.yaml. The latter is what is actually used when building & shipping gems.

There are two sources of truth, because circa 8+ years ago, ruby and bundler didn't handle platform specific gems well. So we added the gem dependencies to project_data.yaml.

We added this note to the .gemspec and project_data.yaml to try to avoid this, but didn't take our own advice.

See also PA-1077

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v8.20.11#820011-sha1:0629dd8)
Atlassian logo

Josh Cooper (Jira)

unread,
Apr 26, 2023, 2:05:02 PM4/26/23
to puppe...@googlegroups.com
Josh Cooper updated an issue
Change By: Josh Cooper
Sprint: Phoenix 2023-05-10

Josh Cooper (Jira)

unread,
Apr 26, 2023, 2:05:02 PM4/26/23
to puppe...@googlegroups.com

Josh Cooper (Jira)

unread,
Apr 26, 2023, 2:05:02 PM4/26/23
to puppe...@googlegroups.com

Josh Cooper (Jira)

unread,
Apr 26, 2023, 2:36:03 PM4/26/23
to puppe...@googlegroups.com
Josh Cooper updated an issue
Change By: Josh Cooper
Release Notes: Bug Fix
Release Notes Summary: Puppet 8.0.0 did not specify the correct minimum ruby version, so it was possible to install it on Ruby 2.7 or 3.0, and then fail to run. Now the puppet gem metadata correctly requires ruby 3.1 or greater.
Reply all
Reply to author
Forward
0 new messages