3 ms·
What is actually the licence of a npm development depending on so many packages? Is the most restrictive licence in the dependecy tree the one which determines
by menotyou 6y ago
What is actually the licence of a npm development depending on so many packages? Is the most restrictive licence in the dependecy tree the one which determines the license requirement of my program?
Do I have to publish my source code if any of the dependencies is GPL?
- jerf 6y agoThere's no guarantee that you can release such a program at all. Things can have conflicting licenses in which case it is simply not valid to have both of them at the same time. For example, a strong copyleft requiring all source code to be released, and a library with a binary blob for which source release is impossible or prohibited.
- cddotdotslash 6y agoIANAL, but I've been involved in a few acquisitions and when you get to the part about code ownership, the acquiring company will often do a license scan of the entire dependencies folder (which includes sub dependencies). So if any of those files show up as GPL, you technically could be in violation. Now, if a package licensed as MIT includes a dependency on a package licensed as GPL, I don't know if that's a violation by the parent project owner because the parent package doesn't actually distribute the GPL code, but rather includes a reference to it, so that the installer running "npm install" fetches it. But I would imagine that the end user who is pulling those packages and actually installing all the dependencies would be in violation because the final packaged code used to deliver the service actually contains the GPL code.