-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add workaround for Pixar license being lame (#626)
The Pixar license is an almost exact copy of Apache-2.0, but doesn't actually have enough changes compared to the Apache-2.0 license to be fuzzy matched if the apache license text has the appendix at the end removed (eg, doesn't even have Pixar in the title), so this PR just adds a workaround specifically for this case. Resolves: #625
- Loading branch information
1 parent
272ef5b
commit 63e48ee
Showing
10 changed files
with
502 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
--- | ||
source: tests/licenses.rs | ||
expression: diags | ||
--- | ||
[ | ||
{ | ||
"fields": { | ||
"code": "rejected", | ||
"graphs": [ | ||
{ | ||
"Krate": { | ||
"name": "so-annoying", | ||
"version": "0.1.0" | ||
} | ||
} | ||
], | ||
"labels": [ | ||
{ | ||
"column": 12, | ||
"line": 4, | ||
"message": "license expression was not specified", | ||
"span": "" | ||
}, | ||
{ | ||
"column": 15, | ||
"line": 5, | ||
"message": "license expression retrieved via LICENSE-APACHE, LICENSE-PIXAR", | ||
"span": "Apache-2.0 AND Pixar" | ||
}, | ||
{ | ||
"column": 15, | ||
"line": 5, | ||
"message": "accepted: license is explicitly allowed", | ||
"span": "Apache-2.0" | ||
}, | ||
{ | ||
"column": 30, | ||
"line": 5, | ||
"message": "rejected: not explicitly allowed", | ||
"span": "Pixar" | ||
} | ||
], | ||
"message": "failed to satisfy license requirements", | ||
"notes": [ | ||
"'LICENSE-APACHE' fuzzy matched to Pixar license, but it actually a normal Apache-2.0 license", | ||
"Pixar - Pixar License:", | ||
" - No additional metadata available for license" | ||
], | ||
"severity": "error" | ||
}, | ||
"type": "diagnostic" | ||
} | ||
] |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[package] | ||
name = "so-annoying" | ||
version = "0.1.0" | ||
edition = "2021" | ||
publish = false |
Oops, something went wrong.