Provide a license report
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 30/100
Direzione di ricerca
Inizia con il comando esistente stack ls dependencies --license e traccia il modo in cui ottiene i metadati delle licenze delle dipendenze senza fare affidamento su plan.json o su uno store Cabal popolato. Il lavoro è completato quando un report nativo di Stack include il testo della licenza richiesto, presenta un output del report utilizzabile e canonicalizza le stringhe delle licenze.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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
.cabalfiles.
(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.
- Lingua principale
- Haskell
- Stelle
- 4.1k
- Fork
- 857
- Merge medio
- 17h 32m
- PR unite (30g)
- 5
Preparare l'ambiente
Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di commercialhaskell/stack
-
Build Stack against Cabal >= 3.18Forse già presa @mpilgrem l’ha presa 14 giorni fa. Aperta
commercialhaskell/stack#6976 · 1 assegnatario ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 52/100
commercialhaskell/stack#6954 ·
-
Support type-checking without compilingForse di nuovo libera @mpilgrem l’ha presa 135 giorni fa e non c’è nessuna pull request aperta. Apertacomponent: build type: enhancement
commercialhaskell/stack#6951 · 3 reazioni · 1 assegnatario ·
-
Support semaphore-compat 2.0.0Forse di nuovo libera @mpilgrem l’ha presa 158 giorni fa e non c’è nessuna pull request aperta. Apertacomponent: build in progress type: enhancement
commercialhaskell/stack#6934 · 3 commenti · 1 assegnatario ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 42/100
commercialhaskell/stack#6864 · 1 commento ·
Tutte le issue di commercialhaskell/stack
Issue simili
-
documentation
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 92/100
alunduil/network-arbitrary#293 ·
I maintainer di solito rispondono entro 1 giorno
-
area:client bug priority-low
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
-
bug triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 91/100
simplex-chat/simplex-chat#8372 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
compiler-explorer/compiler-explorer#9710 ·
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
I maintainer di solito rispondono entro 1 giorno