-
Notifications
You must be signed in to change notification settings - Fork 125
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
Support for repositories that are dual-licensed #117
Comments
It's very complex to programmatically understand the difference between dual-licensed (user can choose a license) vs contains code for both licenses (user must comply with both). Yes, I think reporting both and show a warning to ask users to check can be a good step forward. Open for suggestions and contribution. |
@Bobgy I think it would be nice to allow manual path overrides by the user in case they have dependencies which use non-standard paths for their license files. This way the behaviour of go-licenses could be predictable (even for repos with dual licenses), and we wouldn't need to wait for go-licenses to add support for every license location that any module uses. For example, I'm having an issue with the dependency
To make the go-licenses tool's behaviour as predictable as possible, I think something like the following would be a nice feature:
Where the contents of
Another way to support this would be to allow multiple inline
What do you think? |
Makes perfect sense to me. Regarding how to override, ideally we support both an arg as well as a config file. viper seems to be a go to option to achieve that. |
Welcome contributions in this direction! |
JFYI, https://stackoverflow.com/a/58470849 seems to be a code example to achieve that |
Also note more complex cases exist:
We don't need to solve all of them at once, but for any proposed solution, it's better to quickly think how it may be extended for future requirements. |
When i run
go-licenses csv ./...
against github.com/kubernetes/kubernetes:the csv contains:
because https://github.com/heketi/heketi has multiple licenses (GPL 2.0 and Apache 2). Should the tool print both licenses?
The text was updated successfully, but these errors were encountered: