You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 25, 2025. It is now read-only.
If the only changes are to what files are included, then you're good
46
+
to go. However, if any of the _licenses_ changed, whether new licenses
47
+
are added, old ones removed, or any have their content changed in
48
+
_any_ way (including, e.g., whitespace changes), or if the affected
49
+
libraries change, **you must update the actual license file**.
24
50
25
-
The `sky/packages/sky_engine/LICENSE` file is included in product releases and should be updated any time the golden file changes in a way that involves changes to anything other than the FILE lines. To update this file, run:
51
+
The `sky/packages/sky_engine/LICENSE` file is the one actually
52
+
included in product releases and the one that should be updated any
53
+
time the golden file changes in a way that involves changes to
54
+
anything other than the `FILE` lines. To update this file, run:
for (int index =0; index < output.length; index +=1) {
2275
+
// The strings we look for here are strings which we do not expect to see in
2276
+
// any of the licenses we use. They either represent examples of misparsing
2277
+
// licenses (issues we've previously run into and fixed), or licenses we
2278
+
// know we are trying to avoid (e.g. the GPL, or licenses that only apply to
2279
+
// test content which shouldn't get built at all).
2280
+
// If you find that one of these tests is getting hit, and it's not obvious
2281
+
// to you why the relevant license is a problem, please ask around (e.g. try
2282
+
// asking Hixie). Do not merely remove one of these checks, sometimes the
2283
+
// issues involved are relatively subtle.
2284
+
if (output[index].contains('Version: MPL 1.1/GPL 2.0/LGPL 2.1'))
2285
+
throw'Unexpected trilicense block found in: ${usedLicenses[index].origin}';
2286
+
if (output[index].contains('The contents of this file are subject to the Mozilla Public License Version'))
2287
+
throw'Unexpected MPL block found in: ${usedLicenses[index].origin}';
2288
+
if (output[index].contains('You should have received a copy of the GNU'))
2289
+
throw'Unexpected GPL block found in: ${usedLicenses[index].origin}';
2290
+
if (output[index].contains('BoringSSL is a fork of OpenSSL'))
2291
+
throw'Unexpected legacy BoringSSL block found in: ${usedLicenses[index].origin}';
2292
+
if (output[index].contains('Contents of this folder are ported from'))
2293
+
throw'Unexpected block found in: ${usedLicenses[index].origin}';
2294
+
if (output[index].contains('https://github.com/w3c/web-platform-tests/tree/master/selectors-api'))
2295
+
throw'Unexpected W3C content found in: ${usedLicenses[index].origin}';
2296
+
if (output[index].contains('http://www.w3.org/Consortium/Legal/2008/04-testsuite-copyright.html'))
2297
+
throw'Unexpected W3C copyright found in: ${usedLicenses[index].origin}';
2298
+
if (output[index].contains('It is based on commit'))
2299
+
throw'Unexpected content found in: ${usedLicenses[index].origin}';
2300
+
if (output[index].contains('The original code is covered by the dual-licensing approach described in:'))
2301
+
throw'Unexpected old license reference found in: ${usedLicenses[index].origin}';
2302
+
if (output[index].contains('must choose'))
2303
+
throw'Unexpected indecisiveness found in: ${usedLicenses[index].origin}';
0 commit comments