Skip to content

Conversation

@hsbt
Copy link
Member

@hsbt hsbt commented Feb 3, 2026

What was the end-user or developer problem that led to this PR?

From #9277

We should use resolv-0.7.0 that is working without fiddle dependency. But resolv-0.7.0 has C extension, so we couldn't vendor that at rubygems.

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

Removed vendored resolv. We should rely bundled resolv as default gems.

Make sure the following tasks are checked

Copilot AI review requested due to automatic review settings February 3, 2026 08:12
@hsbt hsbt force-pushed the remove-vendoered-resolv branch from 66d6500 to 35169f1 Compare February 3, 2026 08:14
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 PR removes the vendored resolv library (version 0.6.2) from RubyGems and switches to relying on the bundled resolv-0.7.0 as a default gem. This addresses issue #9277 where MSWindows builds were broken due to a circular dependency: the vendored resolv library required win32-registry, which depends on fiddle, creating an unresolvable bootstrap problem.

Changes:

  • Removed vendored resolv-0.6.2 dependency from gem vendor configuration
  • Deleted vendored resolv library code and license files
  • Updated net-http to use standard resolv library instead of vendored version

Reviewed changes

Copilot reviewed 3 out of 7 changed files in this pull request and generated no comments.

Show a summary per file
File Description
tool/bundler/vendor_gems.rb Removed resolv gem entry from vendoring configuration
tool/bundler/vendor_gems.rb.lock Removed resolv gem from lockfile (gem list, dependencies, checksums)
tool/automatiek/vendor.rb Removed VendoredGem configuration for resolv including dependencies and patch references
lib/rubygems/vendor/resolv/lib/resolv.rb Deleted entire vendored resolv library implementation (3,483 lines)
lib/rubygems/vendor/resolv/COPYING Deleted vendored resolv license file
lib/rubygems/vendor/net-http/lib/net/http.rb Changed from vendored resolv (require_relative, Gem::Resolv) to standard library (require 'resolv', Resolv)

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@hsbt hsbt force-pushed the remove-vendoered-resolv branch from 35169f1 to a6fc613 Compare February 3, 2026 08:23
@hsbt hsbt closed this Feb 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants