-
Notifications
You must be signed in to change notification settings - Fork 366
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
Setting/overwriting license for a dependency #814
Comments
CC @josieang |
also interested in adopting the license scanning feature in Envoy Gateway, and this issue is stopping us from adopting it at this moment, more in envoyproxy/gateway#2917 |
Thanks for the feedback all! What would be the most convenient way for you to set this information?
|
Thanks @oliverchang for coming back to this topic. For me, definitely a config file would be the most convenient way to set it. There are several advantages for this approach:
|
@josieang (who added the license scanning feature initially) would you have some time to help with implementing this? It would also be a great opportunity to look at moving the feature out of experimental. |
Thanks everyone for feedback on the license scanning feature! Sorry for missing this thread. I'll have time to work on this in early May. You may have already seen it, but we have a "How are licenses determined?" section at https://docs.deps.dev/faq which explains briefly our license provenance. @ststroppel Just curious:
Why only be cautious about license changes only when major version bumps happen? Why not track any license changes for any version bump? |
How do you want to track the license changes? I was rather thinking about a quite dumb overwrite of a components license. But I'm open to better ideas. |
@ststroppel license can also be changed on minor update, e.g. terraform. In theory it can also be changed on patch update, although I don't think it's a real case. See related discussion: semver/semver#322. |
Hm, that's an interesting point giving users the option to override on major, minor or patch makes sense to me. From experience at deps.dev many ecosystems don't fully follow semver and parsing versions properly can be pretty ecosystem-specific. It's likely guided remediation has needed to figure out how to parse versions, I will chat to @michaelkedar when he gets back from leave. But as a draft PR I'll do something pretty simple like spliting on |
@josieang I might be able to help with that too if you like - I had to understand how each versions work in each ecosystem as part of creating That package will probably already have the info you need in order to do the comparisons, it just might not expose them (yet) |
I'd like feedback on the config yaml schema, the filter message and it's behaviour if the version is empty (it filters any version of that package). This is in response to #814
Add documentation for the newly added config package override feature #814
This is now possible with the new configuration option in #944. Feel free to reopen if this does not satisfy your use case. |
Hi,
I've been exploring the new experimental license scanning feature and find it quite impressive. However, I believe there's a crucial functionality that seems to be missing - the ability to specify the license for a dependency.
During my testing of this feature in our npm repository, I encountered several dependencies where the license information could not be detected due to various reasons:
UNKNOWN
. An example of this is khroma, where the dependency license is declared as a MIT but it was not retrieved correctly. I suspect the necessary information is missing within the package.json.Therefore, I propose the addition of a feature that allows users to manually set or overwrite the detected license of a dependency, optionally for a specific version or a version range.
The text was updated successfully, but these errors were encountered: