rails-erd icon indicating copy to clipboard operation
rails-erd copied to clipboard

GPL 2.0 license in ruby-graphviz dependency

Open sirvine opened this issue 7 years ago • 8 comments

I discovered in a license audit of my codebase that rails-erd was bringing ruby-graphiz in as a dependency. Ruby-Graphviz is GPL2.0 licensed (see here).

This could have negative consequences for users who see the MIT license on this library and assume that this gem can be used in a closed-source, confidential/proprietary codebase. In fact, I believe this dependency means that we have to remove rails-erd from all code that we don't want to disclose publicly per the terms of the GPL2.

I tried replacing ruby-graphviz with an MIT-licensed equivalent, but the differences in API were sufficient that it wasn't worth the effort in our case.

This is a great and useful gem, and I'd love to use it in closed-source projects again soon. Of course, anyone is free to disagree with my interpretation of the licenses, but I tend to be very conservative about anything other than LGPL touching closed-source code.

sirvine avatar Jul 21 '17 07:07 sirvine

Thank you for bringing this to my attention. I'll take a look at the licensing implications, and see about a replacement.

kerrizor avatar Jul 26 '17 19:07 kerrizor

This is still an issue - you cannot license rails-erd under the MIT license if you depend on ruby-graphviz.

ioquatix avatar Jul 15 '20 01:07 ioquatix

If ruby-graphviz only shells out to the graphviz dot utility, I don't think that's considered "linking" and someone could convince the author(s) to re-license ruby-graphviz as MIT or LGPL.

postmodern avatar Feb 04 '22 21:02 postmodern

Pending that you can just rewrite this gem to use https://rubygems.org/gems/graphviz

ioquatix avatar Feb 04 '22 21:02 ioquatix