@Schimi: Three (was two) cross‑posting under the Chatham House rule (CHR), so I cannot cite my sources. Note too that some of the discussion drifted to GitHub rather than GitLab. HTH, R
I think there is a fundamental misunderstanding in the forum entry you posted:
“Putting an additional LICENSE
file in the root of the repository is not allowed by REUSE specs.”
This is not correct. While the REUSE specification 3.0 does require the existence of a LICENSES/
directory and mandates the format license texts are stored, it does not disallow having a LICENSE
or COPYING
file at the root of the project.
Please see the spec and a corresponding FAQ item:
Now, the real question: why can GitHub not interpret the LICENSES/
directory? We (as in the REUSE team) tried a few times to make it happen but there wasn’t much interest by GitHub, see this issue. The last status, to my knowledge, is that they would like to have a Pull Request for this feature in licensee, the software they use to detect licenses. However, whether the feature would then also be implemented into the GitHub UI was not certain at all.
If GitHub (and also other software forges such as GitLab or Gitea) would truly like to improve this situation and adapt best practices for communicating licenses and copyright, I am positive that they would receive support by the REUSE team and its wide community.
I will note that https://sr.ht does support the LICENSES/
directory just fine from what I can tell.
As proof, look at:
which properly lists all of the different licenses the project is under in the upper right corner, based on parsing the LICENSES/
directory.
In contrast, as you point out, GitHub does not understand this at all:
Last year, GitHub pushed an update so you can have multiple files at root level, for instance LICENSE-MIT
and LICENSE-GPL
:
The repo they show as an example is:
Of course, this does not match REUSE’s best practices. However, the UI seems to exist so GitHub could just start to also look in LICENSES/
for license text files.