Skip to content

Conversation

@hsbt
Copy link
Member

@hsbt hsbt commented Jan 9, 2026

What is your fix for the problem, implemented in this PR?

install_extension_in_lib leads to install C extension artifacts to under the lib directory.

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

Copilot AI review requested due to automatic review settings January 9, 2026 03:34
@hsbt hsbt changed the title Make DEFAULT_INSTALL_EXTENSION_IN_LIB false by default to stop instal… Make DEFAULT_INSTALL_EXTENSION_IN_LIB to false Jan 9, 2026
Copy link
Contributor

Copilot AI left a 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
Copy link

Copilot AI Jan 9, 2026

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.

Copilot uses AI. Check for mistakes.
Copy link
Member Author

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

Copy link

Copilot AI commented Jan 9, 2026

@hsbt I've opened a new pull request, #9241, to work on those changes. Once the pull request is ready, I'll request review from you.

Copilot AI and others added 2 commits January 9, 2026 04:03
Add test assertion for install_extension_in_lib default value
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants