Provide a license report

Đang mở
#6,676 4 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ó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
30/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
haskell
Lĩnh vực
cli, tooling

Hướng nghiên cứu

Bắt đầu với lệnh hiện có stack ls dependencies --license và theo dõi cách lệnh này lấy siêu dữ liệu giấy phép của các dependency mà không phụ thuộc vào plan.json hoặc một Cabal store đã được điền. Công việc được xem là hoàn tất khi một báo cáo native của Stack bao gồm văn bản giấy phép bắt buộc, cung cấp đầu ra báo cáo có thể sử dụng và chuẩn hóa các chuỗi giấy phép.

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

Mô tả

awaiting pull request component: output (UI/UX) type: enhancement

At the moment, it is hard to generate a bill of materials for dependencies. Since IIUC standard Haskell practice is to link statically, that seems to mean that binary distributions effectively are redistributing derivative works of all dependencies, and so my understanding is that all their license terms need to be distributed along with the software.

However, I acknowledge that even projects as conservative as Debian aren't bothering to do this, so this may be a solution looking for a problem. On the other hand, the existence of cabal-plan license-report suggests to me that some people are bothering to do this.

In particular stack ls dependencies --license isn't enough. This is for a couple of reasons:

  • For some licenses (MIT, BSD, ISC, ...), the license text needs to also be distributed.
  • The output still needs to be massaged into an actual report
  • It'd be nice if the report could canonicalize the license strings -- right now it seems it produces the raw license strings from the .cabal files.

(A further ask that requires social, not technical, solutions is to have the license strings be SPDX identifiers, since the current freeform standard gives rise to such ambiguities as "What does GPL mean?" (version is ambiguous, as is whether using later versions is permitted))

Hacking a solution around cabal-plan is not viable, since it requires both a plan.json (which might be generated from a freezefile, but…) and also a populated Cabal store. Hence, a stack-native solution is necessary. For the same reason, it is unreasonable to push this to cabal-plan, and given that stack ls dependencies --license exists, it makes sense to push for it to actually be useful.

Ngôn ngữ chính
Haskell
Star
4.1k
Fork
857
Merge trung bình
17 giờ 32 phút
Pull request đã merge (30 ngày)
5

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

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 commercialhaskell/stack

Tất cả issue của commercialhaskell/stack

Issue tương tự

Thêm issue về Haskell

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.