Skip to content

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
@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