Repository navigation
chore(license): state GPL-3.0-or-later in every file and manifest - #38
Conversation
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 47 minutes. View limit details
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
The intent is or-later, but nothing in the repo said so, so a consumer cannot tell whether GPLv4 is permitted. The grant only helps if it is made while the contribution is, while a re-grant would mean writing to every contributor. - 41 source files (40 `.cs`, 1 `.js`) | `// SPDX-License-Identifier: GPL-3.0-or-later` plus a copyright line. - `TheIntroDB/Configuration/configPage.html` | `<!-- SPDX-License-Identifier: GPL-3.0-or-later -->` at the top (the file is an HTML fragment, with no doctype). - `TheIntroDB/TheIntroDB.csproj`, `TheIntroDB.Tests/TheIntroDB.Tests.csproj` | `<PackageLicenseExpression>GPL-3.0-or-later</PackageLicenseExpression>` added to each. LICENSE is left byte-identical to the FSF text. Prepending the notice above it was tried first and reverted on evidence: GitHub's detector has no GPL-3.0-or-later entry to match against (the vendored database only carries GPL-3.0, and the package matcher strips -or-later), and an augmented LICENSE stops matching the canonical text at all - the repo went from GPL-3.0 to NOASSERTION. The per-file SPDX identifier, the manifest field and the README are where the grant is readable. Verified: - `dotnet test TheIntroDB.sln` — **Failed: 0, Passed: 118, Total: 118**. - `gh api repos/TheIntroDB/emby-plugin/license?ref=chore/licensing` — `GPL-3.0`, unchanged from `main`.
31bdfe6 to
37fb4ba
Compare
Why
The intent for this repo is GPL-3.0-or-later, but nothing in it said so:
LICENSEis the plain FSF GPL-3 text, no source file carried an identifier — the
.csprojhad noPackageLicenseExpressionat all. Or-later is onlyworth anything if it is written down while the contribution is being made — it is what
lets the project adopt a future GPL version without hunting down every contributor for a
re-grant, and right now a downstream author copying a file, or reading the sidebar, cannot
tell whether GPLv4 is permitted.
What the PR does
LICENSE.cs, 1.js)// SPDX-License-Identifier: GPL-3.0-or-laterplus a copyright line.TheIntroDB/Configuration/configPage.html<!-- SPDX-License-Identifier: GPL-3.0-or-later -->at the top (the file is an HTML fragment, with no doctype).TheIntroDB/TheIntroDB.csproj,TheIntroDB.Tests/TheIntroDB.Tests.csproj<PackageLicenseExpression>GPL-3.0-or-later</PackageLicenseExpression>added to each.README.mdLICENSE.No functional change: comments, manifest fields and prose.
LICENSEis deliberately untouchedThe obvious move is to prepend that notice to
LICENSEitself. I tried exactly that first,and backed it out on the evidence:
GPL-3.0-or-laterfrom a license file. Thevendored database licensee matches against (
choosealicense.com) carriesGPL-3.0,GPL-2.0,AGPL-3.0,LGPL-*— there is nogpl-3.0-or-laterentry, and the file matcherreturns the matched entry's
spdx_id. The package-manifest matcher normalises-or-lateraway (
SPDX_SUFFIX_REGEXinmatchers/package.rb), so it cannot produce it either. Sampledagainst twelve real GPL projects (
obsproject/obs-studio,gnuradio/gnuradio,KDE/krita,mpv-player/mpv,blender/blender,qBittorrent/qBittorrent, …): every one reportsGPL-2.0,GPL-3.0orNOASSERTION— none report an-or-laterid.LICENSEmakes it strictly worse. With the notice prepended, the branchreported
NOASSERTIONinstead ofGPL-3.0: the file no longer matches the canonical textclosely enough, and the repo loses the license it did have.
So the grant is stated where it is both human-visible and machine-readable: the SPDX
identifier on every file (the location the SPDX spec prescribes for a per-file grant), the
manifest field, and the README.
LICENSEstays byte-identical to what the FSF ships, so thesidebar keeps reading
GPL-3.0. If you would rather have the notice physically insideLICENSEand accept the sidebar saying "Other", that is a two-line change — say the word.Tests
dotnet test TheIntroDB.sln— Failed: 0, Passed: 118, Total: 118.gh api repos/TheIntroDB/emby-plugin/license?ref=chore/licensing—GPL-3.0, unchanged frommain.Not in this PR
publish/artifacts are untouched).