-
Notifications
You must be signed in to change notification settings - Fork 336
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
Remove LGPLv3 Dependency #181
Conversation
Thank you for addressing the issue @nguyer! Would be great to have this merged, so we can consume |
@jbowes Could you take a look? |
In the meantime, anyone is welcome to use my fork which has the GPL code removed: https://github.com/nguyer/promptui |
Ideally this needs to be fixed upstream in github.com/manifoldco/promptui, but it appears unmaintained. Our dependency is extremely indirect: $ go mod why github.com/juju/ansiterm # github.com/juju/ansiterm github.com/caddyserver/caddy/v2/modules/caddypki github.com/smallstep/certificates/authority go.step.sm/cli-utils/ui github.com/manifoldco/promptui github.com/juju/ansiterm And it appears that all dependencies in this chain are in conflict with the LGPL license. Ref: - manifoldco/promptui#173 - manifoldco/promptui#181 /cc @maraino
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @nguyer. I apologize for how long it's taken to respond.
text/tabwriter
Won't properly align colorized (or otherwise formatted) text, but it's better to have that bug than to have license violations.
Awesome! Thanks for merging this! |
This PR addresses #173
promptui
is only using theansiterm
library for itsTabWriter
. However, this library is licensed under LGPLv3 https://github.com/juju/ansiterm/blob/master/LICENSE, causing licensing issues for other projects that want to includepromptui
.This PR changes
promptui
to use Go's built inTabWriter
rather than the one provided byansiterm
. This could result in some loss in features. All tests are passing still after this change, but it would be good for someone more familiar with the library to verify that this does not cause any significant problems.