Skip to content

fix: irb_require matches similar names - #1253

Merged
tompng merged 1 commit into
ruby:masterfrom
GabrielLidenor:bug-irb-require-incorrectly-matches-similar-name
Sep 12, 2026
Merged

fix: irb_require matches similar names#1253
tompng merged 1 commit into
ruby:masterfrom
GabrielLidenor:bug-irb-require-incorrectly-matches-similar-name

Conversation

@GabrielLidenor

@GabrielLidenor GabrielLidenor commented Sep 12, 2026

Copy link
Copy Markdown
Contributor

closes #1252

Previously, requiring foo could be skipped if foo2.rb was already loaded. The filename matching now requires an exact match, and a regression test covers this case.

@tompng

tompng commented Sep 12, 2026

Copy link
Copy Markdown
Member

Looks good. Thank you 👍

In this repository and in most repositories in ruby org, you don't need to create a short-lived issue just to pair with a bug fix PR. Of course a standalone bug report issue or an issue meant for bigger discussion is always welcome 😄
One exception: Bugfix PR to ruby/ruby repo requires bug report to bugs.ruby-lang.org for backport management.

@tompng
tompng merged commit 50d1014 into ruby:master Sep 12, 2026
40 checks passed
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.

Bug: irb_require incorrectly matches similarly named files

2 participants