From b0f7b37fd1ffa171e1dd8e52cf1d5edec7a8735b Mon Sep 17 00:00:00 2001 From: Piotr Grabowski Date: Tue, 15 Oct 2024 12:27:00 +0200 Subject: [PATCH] Add license override for oauth library (#888) `github.com/mrjones/oauth` uses a non-standard-named filename for the `LICENSE.txt` file (`MIT-LICENSE.txt` instead of `LICENSE.txt`). `go-license-detector` cannot handle such a case, as seen here: https://github.com/QuesmaOrg/quesma/actions/runs/11327943230/job/31500069625 The problem was already reported to both the `go-licenses` library (https://github.com/google/go-licenses/issues/142) and the `oauth` library (https://github.com/mrjones/oauth/issues/74), but it's not fixed yet. Fix the problem by adding an override entry to `overrides.ndjson`. --- .github/go-licence-detector/overrides.ndjson | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/go-licence-detector/overrides.ndjson b/.github/go-licence-detector/overrides.ndjson index b285f52dc..9af012999 100644 --- a/.github/go-licence-detector/overrides.ndjson +++ b/.github/go-licence-detector/overrides.ndjson @@ -1,2 +1,3 @@ {"name": "github.com/pascaldekloe/goe", "licenceType": "Public Domain"} {"name": "github.com/pascaldekloe/name", "licenceType": "Public Domain"} +{"name": "github.com/mrjones/oauth", "licenceFile": "MIT-LICENSE.txt"} \ No newline at end of file