FYI: transient dependency on `erb` means that `debug` no longer installs on Ruby < 3.2

Đang mở
#1,149 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
ruby
Lĩnh vực
devtools

Hướng nghiên cứu

Start with the Ruby version requirement in debug.gemspec and the supported versions listed in README.md. Reproduce installation on Ruby 3.1 and inspect the dependency chain through irb, rdoc, and erb. Done should mean either supported Ruby versions install successfully or the support claims and CI coverage are updated to match.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Your environment

  • ruby -v: ruby 3.1.7p261 (2025-03-26 revision 0a3704f218) [x86_64-linux]

Describe the bug

I noticed in this dependabot PR, that CI was failing to install debug in Ruby 3.1.

debug relies on irb, which relies on rdoc which relies on erb, which dropped support for Ruby < 3.2:

erb-5.0.1 requires ruby version >= 3.2.0, which is incompatible with the current
version, 3.1.7

debug claims to support Ruby back to 2.7 (here and here), but currently can't be installed on those.

To Reproduce

  • Within Ruby <3.2, try to install debug

Expected behavior

  • If it's a supported Ruby version, then installing debug should work fine.
    • And perhaps debug should have a CI run using these old versions to show that it continues to work.

Additional context

I know that this isn't under your direct control, so I'm not sure which would be the best way to handle this.

This is really just an FYI. In my case, I'll probably drop support for 3.1 myself, and so I will no longer attempt to install debug on it.

Ngôn ngữ chính
Ruby
Star
1.3k
Fork
146
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của ruby/debug

Tất cả issue của ruby/debug

Issue tương tự

Thêm issue về Ruby

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.