You need to sign in or sign up before continuing.
Bug: LICENSE.TXT license declaration is showing up as the wrong license value in the Project information panel
Summary
Users declare licenses for their projects via the LICENSE.TXT
file in GitLab. Users are required to copy and paste the license text, which is saved in the LICENSE.TXT
file and propagated to the Project information
side drawer. We should read from the license file and propagate the correct license name in the Project information
side drawer.
Currently, we are inaccurately showing the license name, even though it has been properly declared by the user via the LICENSE.TXT
file.
Steps to reproduce
- Reference this public project
- Note that the license is
GPLv3 only
in theLICENSE.TXT
- Reference the project information drawer and see that the license is being displayed as
GNU General Public License v3.0 or later
, when it should beGPLv3 only
.
Example Projects
- https://gitlab.com/craigbarnes/lua-terminfo-parser#license (GPLv3 only, reported as GPLv3 or later)
- https://gitlab.com/craigbarnes/tally#license (GPLv2 only, misreported as GPLv2 or later)
- https://gitlab.com/craigbarnes/ltcn#license (ISC, misreported as 0BSD)
- https://gitlab.com/craigbarnes/lua-discount#license (ISC, misreported as 0BSD)
- craigbarnes/lua-discount@2c559f63 (tricked into misreporting my own license)
What is the current bug behavior?
GitLab is not matching the license name to the license that is declared in the LICENSE.TXT
file.
What is the expected correct behavior?
GitLab is able to accurately match the license name to the license that is declared in the LICENSE.TXT
file.
Relevant logs and/or screenshots
Edited by John Crowley