Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Make gli an optional dependency (only bin/slack needs it)

Đang mở
#601 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ó
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
Loại issue
Tái cấu trúc
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
ruby
Lĩnh vực
cli, tooling

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:

  1. Move gli to an optional dependency. Have bin/slack require 'gli' and fail with a clear message ("add gem 'gli' to use the slack CLI") when it's missing.
  2. 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

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 slack-ruby/slack-ruby-client

Tất cả issue của slack-ruby/slack-ruby-client

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.