Jira (PUP-11055) Use require_relative

1 view
Skip to first unread message

Josh Cooper (Jira)

unread,
May 4, 2021, 2:39:03 PM5/4/21
to puppe...@googlegroups.com
Josh Cooper created an issue
 
Puppet / Improvement PUP-11055
Use require_relative
Issue Type: Improvement Improvement
Assignee: Unassigned
Created: 2021/05/04 11:38 AM
Priority: Normal Normal
Reporter: Josh Cooper

Update puppet to use require_relative in cases where we know the file to load is in the same repo. This can't be used in cases where extensions may be loaded from modules, such as features, etc.

There are reports require_relative misbehaves on some versions of JRuby https://github.com/jruby/jruby/issues/5618

So we may need to implement something like what rspec did: https://github.com/rspec/rspec-support/blob/4ad8392d0787a66f9c351d9cf6c7618e18b3d0f2/lib/rspec/support.rb#L14-L31

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v8.13.2#813002-sha1:c495a97)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages