Closed sunilk747 closed 6 years ago
When there is no output, it means the licenses are compatible. The return code is 0.
If they are not compatible, a message like GPL-3.0 is not forward-compatible with ISC
will be written to stderr, and the return code will be 1.
You can use it in bash scripts like this:
if license-compatibility EPL-1.0 MPL-2.0 Apache-2.0; then
: do stuff
else
: do other stuff
fi
The command line tool is mainly used to detect incompatibilities, for the user to fix it. But I agree it can be confusing. Maybe a note in the README would do.
@Pawamoy Wouldn't it be a good idea to give a message as output saying the license's are compatible
instead of not giving any output at all?
Yes it could be helpful to the user. If @andrew is OK with that I'll send a PR!
@Pawamoy yep sounds good to me 👍
Fixed by @Pawamoy in #49
I want to know if
MPL 2.0
andEPL 1.0
are compatible, same withApache 2.0
andEPL 1.0
. But when I am tryinglicense-compatibility EPL-1.0 MPL-2.0
, I am not getting any output.