-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Make it more obvious what license a repo is using #24076
Comments
License detection is complicated, requires heuristics and because of this, it'll never deliver perfect results unless the programming community as a whole standardizes on a format, which also won't happen. GitHub does this via licensee, but we can't leverage easly it because it's Ruby. Maybe it can be ran as a subprocess. |
In case someone is interested at looking in to this: https://licensee.github.io/licensee/#the-solution |
As I suggested in #12905, license detection doesn't need to be implemented for this feature, even though it would be nice to have |
Ah, you mean that a repo can set itself what license it uses, i.e. in the settings? |
Yes exactly |
I don't see a manual license setting as a solution. Other forges do auto-detection, so we are kind of forced to do too. This also avoids a potential mismatch problem between a manually set license and a different one via |
If auto-detection is ever enabled a manual override will almost certainly be necessary in cases of potential mismatch or misdetection anyway, so I think the manual selection might as well be implemented first since it does not rely on any new dependencies. Also as an aside, I don't think what other code forges do should force Gitea to do anything. Gitea should forge (pun intentional) its own path and cater to its own users. |
Other forges are having automation so we have to have too. Imagine you have hundrets of repos to migrate between forges, you don't want to manually set their licenses on each of them. If such a topic is important to you, you might even end up not choosing gitea because of the lack of automatism. |
https://github.com/go-enry/go-license-detector looks like something that might work as a start, it seems to re-implement what licensee does. |
Gitea has no license detection currently, meaning those users are out of luck anyway, but if adding a license detector is on someone's roadmap then great! Another Github-specific option is to just use the existing API to retrieve the license for a repo during migration. |
Just as a side-note: https://reuse.software/ by the FSFE is a cool project to fix this and >70% of e.g. the Linux kernel is already on boat. |
Feature Description
Adding a ui element to show what license the repo is using eg: MIT
Screenshots
No response
The text was updated successfully, but these errors were encountered: