How to list all used licenses? #29318
Replies: 7 comments
-
Maybe You can "Export SBOM" in repository Insights > Dependency Graph. |
Beta Was this translation helpful? Give feedback.
-
I am interested in this topic. Any news on this front? Note that I need a solution that is GitHub independent |
Beta Was this translation helpful? Give feedback.
-
also a "compatibility check", like what's already performed by other package manager (e.g. mixing libraries with incompatible licenses, or the final project having a license incompatible with a dependency) would be a great plus for the solution |
Beta Was this translation helpful? Give feedback.
-
I am working on this tool https://github.com/cenit/licencpp |
Beta Was this translation helpful? Give feedback.
-
I think that's the feature really expected. Please check here what effort is required to generate nice documentation with dependencies and licenses: |
Beta Was this translation helpful? Give feedback.
-
I made this little script which compiles all the licenses as well as any other one you specify into one text file. I ship it with my binary: https://github.com/pierr3/VectorAudio/blob/main/collect_licenses.py |
Beta Was this translation helpful? Give feedback.
-
I cannot find the command to list all licenses of all ports that I'm using (+transitively).
I need a list like the one from pip-licenses:
| lib A | 1.0.0 | MIT License |
| lib B | 2.3.5 | GPL License |
I found I can get a list of packages via
vcpkg/vcpkg depend-info --overlay-ports=. my_project
(see #27030)And I can get all licenses via CMake as shown in #28980
But how do I get the license information from vcpkg.json of the ports that I use (+transitively)?
I hacked this solution, but it's a hack...
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions