Skip to content
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

[RFC] add API to check license compatibility #35

Open
nicolas-grekas opened this issue Jul 11, 2020 · 4 comments
Open

[RFC] add API to check license compatibility #35

nicolas-grekas opened this issue Jul 11, 2020 · 4 comments

Comments

@nicolas-grekas
Copy link

Ensuring that deps in vendor/ have a license compatible with the root project is a tough task.

Other projects exist in js/Rust/Ruby/etc. I computed the following list of interest:

Later on, we could build a composer plugin like this on top:

This could be a great contribution if anyone is up to learn about the topic and contribute a PR here, if the maintainers agree?

Help wanted.

@kalessil
Copy link

kalessil commented Jul 11, 2020

Some time ago I've released a package which covers these topics (also ensures dev-deps are not in require-section): https://github.com/kalessil/production-dependencies-guard

@jdrieghe
Copy link

We did something similar here, feel free to use as inspiration: https://github.com/madewithlove/license-checker-php

@nicolas-grekas
Copy link
Author

@nicolas-grekas
Copy link
Author

nicolas-grekas commented Jul 12, 2020

Note that this RFC is specifically about providing a license compatibility checker.

Plugins that work based on deny/allow lists are out of this initial scope (but could be built/improved on top of this API).

https://github.com/HansHammel/license-compatibility-checker/ looks the most promising for us, with this chart showing what the logic could encode:

licenses

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants