Make gli an optional dependency (only bin/slack needs it)
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 72/100
Hướng nghiên cứu
Start at bin/slack and the gem's runtime dependency declaration. Check how the CLI currently loads gli and how the Web/Events API client is used without it. Done means gli is no longer installed for API-only users, while bin/slack clearly asks users to add gli when it is missing.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
slack-ruby-client has a runtime dependency on gli, but gli is only used by the bin/slack command-line tool. Apps that use the gem purely as a Web/Events API client still install gli, along with gli's own runtime dependency on ostruct (GLI::Options < OpenStruct).
That matters now because Ruby 4.0 removed ostruct from the default gems, and apps that have otherwise removed OpenStruct still carry ostruct in their lockfile through slack-ruby-client → gli.
Options, in order of least disruption:
- Move
glito an optional dependency. Havebin/slackrequire 'gli'and fail with a clear message ("addgem 'gli'to use the slack CLI") when it's missing. - Split the CLI into its own gem (e.g.
slack-ruby-client-cli). #23 ("Partition this gem?") discussed this years ago.
Would either work for you? I'm happy to send a PR for option 1.
- Ngôn ngữ chính
- Ruby
- Star
- 1.3k
- Fork
- 222
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của slack-ruby/slack-ruby-client
-
new feature question
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
slack-ruby/slack-ruby-client#586 · 3 bình luận ·
-
bug?
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 45/100
slack-ruby/slack-ruby-client#579 · 3 bình luận ·
-
new feature web api
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 42/100
slack-ruby/slack-ruby-client#482 · 5 bình luận ·
-
new feature
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
slack-ruby/slack-ruby-client#414 · 15 bình luận ·
-
confirmed bug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
slack-ruby/slack-ruby-client#409 · 5 bình luận ·
Tất cả issue của slack-ruby/slack-ruby-client
Issue tương tự
-
security
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
simp/pupmod-simp-stunnel#173 ·
-
Polish QDrantĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
o19s/quepid#1825 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
`judges download` into an existing directory fails with a raw `EISDIR` after locking the durableĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
Maintainer thường phản hồi trong vòng 7 ngày