Skip to content

Backport warning feature for bundled gems from master #11420

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

Merged
merged 15 commits into from
Aug 21, 2024

Conversation

hsbt
Copy link
Member

@hsbt hsbt commented Aug 21, 2024

deivid-rodriguez and others added 15 commits August 21, 2024 17:46
The `2` skipped frames went out of sync and now it should be `3`.

Rather than just update the offset, we can implement a way that
is adaptative as long as all require decorators are also called require.

Also we should compute the corresponding `uplevel` otherwise the
warning will still point decorators.

Co-authored-by: "Hiroshi SHIBATA" <hsbt@ruby-lang.org>
Like the following scenario with bootsnap, that frames are same or smaller than frame_to_skip(=3).

---
"/Users/hsbt/.local/share/rbenv/versions/3.3-dev/lib/ruby/3.3.0/bundled_gems.rb:69:in `block (2 levels) in replace_require'"
"/Users/hsbt/.local/share/gem/gems/bootsnap-1.18.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'"
"test_warn_bootsnap.rb:11:in `<main>'"
---
@hsbt hsbt added the Backport label Aug 21, 2024
@hsbt hsbt requested a review from k0kubun as a code owner August 21, 2024 08:58
@k0kubun k0kubun merged commit 9ae91eb into ruby:ruby_3_3 Aug 21, 2024
96 of 97 checks passed
@hsbt hsbt deleted the backport-bundled-gems-warn-2 branch August 22, 2024 04:02
tabfugnic added a commit to tabfugnic/mini_exiftool that referenced this pull request Sep 23, 2024
Starting in Ruby 3.5, `pstore` and `ostruct` will not be bundled with
Ruby's default gems, and will need to be added as explicit
dependencies. The deprecation warnings merged into 3.4 for
[pstore][pstore] and [ostruct][ostruct] and then backported for the
[release of 3.3.5][3.3.5]

[pstore]: ruby/ruby#10430
[ostruct]: ruby/ruby#10428
[3.3.5]: ruby/ruby#11420
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants