-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Make DEFAULT_INSTALL_EXTENSION_IN_LIB to false
#9240
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
…ling extensions into lib directory
false
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This pull request changes the default value of DEFAULT_INSTALL_EXTENSION_IN_LIB from true to false in RubyGems. This change stops installing C extension artifacts to the lib directory by default, making it easier to share gems across different Ruby versions. The change was planned for RubyGems 4.0 (as indicated by the removed TODO comment) and is now being implemented in version 4.1.0.dev.
Key changes:
- Changes default behavior for C extension installation location
- Removes the TODO comment that indicated this change should happen in RubyGems 4.0
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| DEFAULT_IPV4_FALLBACK_ENABLED = false | ||
| # TODO: Use false as default value for this option in RubyGems 4.0 | ||
| DEFAULT_INSTALL_EXTENSION_IN_LIB = true | ||
| DEFAULT_INSTALL_EXTENSION_IN_LIB = false |
Copilot
AI
Jan 9, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The test in test_initialize doesn't verify the default value of install_extension_in_lib when no configuration is provided. Consider adding an assertion like assert_equal false, @cfg.install_extension_in_lib in the first part of the test_initialize method (around line 45) to explicitly test that the new default value is false when no config file setting overrides it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@copilot open a new pull request to apply changes based on this feedback
…ialize Co-authored-by: hsbt <[email protected]>
Add test assertion for install_extension_in_lib default value
What is your fix for the problem, implemented in this PR?
install_extension_in_libleads to install C extension artifacts to under thelibdirectory.This makes to hard to share gems across different version of Ruby. We should stop this in the future.
see also:
Make sure the following tasks are checked