You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
RubyGems mutates RbConfig sitearchdir and sitelibdir when building a C extension gem.
RbConfig should never be mutated, as it can lead to various issues.
One of them is actually RubyGems no longer being able to find where to insert in $LOAD_PATH:
RubyGems mutates RbConfig
sitearchdir
andsitelibdir
when building a C extension gem.RbConfig should never be mutated, as it can lead to various issues.
One of them is actually RubyGems no longer being able to find where to insert in
$LOAD_PATH
:rubygems/lib/rubygems.rb
Lines 573 to 581 in c98464e
This issue was made more obvious as rake-compiler copied this logic:
rake-compiler/rake-compiler#202
Could these global mutations be avoided by RubyGems?
Maybe
make install sitearchdir=...
or so would work instead?This might also come up as an issue as loading RubyGems is made more lazy (https://bugs.ruby-lang.org/issues/18568).
I will abide by the code of conduct.
The text was updated successfully, but these errors were encountered: