-
Notifications
You must be signed in to change notification settings - Fork 132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provide a way to get dependency licenses #150
Comments
@i-am-the-slime how should this work? I.e. would something like |
I think something along those lines could work. Sounds like it could be a separate tool then. It would be nice to not include transitive dependencies if possible. That would involve parsing some spago or packages files for filtering, I guess. |
@i-am-the-slime you can get various lists of packages, versions, etc with the It has a Building on the bash example above we get: #!/bin/bash
# Note: the `awk` part is to cut out only the package name
for dep in $(spago list-packages -f direct | awk '{print $1}')
do
cat $(find ".spago/${dep}" -iname 'LICENSE')
done I'd like to avoid baking this kind of functionality into Spago, as:
|
This comment has been minimized.
This comment has been minimized.
This is very nice, thank you very much. |
@i-am-the-slime you're welcome! 🙂 I think this is a useful bit of information worth adding to the FAQ, so I'll add the "docs" label and keep this open |
Many package managers ( Maybe it is a good idea to follow this approach? |
@wires in this case we're talking about getting license information from dependencies, which at the time of writing are going to be 100% bower projects. So this means adapting the above bash snippet to call I'm open to adding a |
This is something we need in order to comply with GDPR if we want to switch to Spago.
The text was updated successfully, but these errors were encountered: