Provide a license report

オープン
#6,676 コメント 4 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
30/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
haskell
領域
cli, tooling

調査の方向性

既存の stack ls dependencies --license コマンドから始め、plan.json や内容のある Cabal ストアに依存せずに依存関係のライセンスメタデータを取得する方法を追跡します。Stack ネイティブなレポートに必要なライセンステキストが含まれ、実用的なレポート出力が提示され、ライセンス文字列が正規化されれば完了です。

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
Haskell
スター
4.1k
フォーク
857
平均マージ
17時間 32分
マージ済み PR(30日)
5

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

commercialhaskell/stack のほかの issue

commercialhaskell/stack の issue をすべて見る

似ている issue

Haskell の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。