From 94eee0ff3daf015afa956cb2d5c881c41b7fcedd Mon Sep 17 00:00:00 2001 From: Theo Browne Date: Wed, 28 Oct 2026 04:45:56 -0700 Subject: [PATCH] fix(build): license notices no longer download SPDX templates during builds Every web, desktop, and mobile build fetched SPDX license templates from raw.githubusercontent.com into an ignored cache. Fresh CI runners always fetched, so a GitHub CDN timeout failed the build. Commit the pinned templates and have builds read them only. `vp run licenses:sync` still downloads a template when the config names a new license. Co-Authored-By: Claude Opus 5.5 --- apps/mobile/metro.config.js | 4 - docs/internals/open-source-licenses.md | 14 ++- scripts/lib/third-party-licenses.test.ts | 18 ++-- scripts/lib/third-party-licenses.ts | 102 ++++++------------ .../spdx/v3.28.0/Apache-2.0.json | 4 + .../spdx/v3.28.0/BSD-2-Clause.json | 4 + .../spdx/v3.28.0/BSD-3-Clause.json | 4 + .../spdx/v3.28.0/CC0-1.0.json | 4 + third-party-licenses/spdx/v3.28.0/ISC.json | 4 + third-party-licenses/spdx/v3.28.0/MIT.json | 4 + .../spdx/v3.28.0/OFL-1.1.json | 4 + .../spdx/v3.28.0/Unlicense.json | 4 + 12 files changed, 76 insertions(+), 94 deletions(-) create mode 100644 third-party-licenses/spdx/v3.28.0/Apache-2.0.json create mode 100644 third-party-licenses/spdx/v3.28.0/BSD-2-Clause.json create mode 100644 third-party-licenses/spdx/v3.28.0/BSD-3-Clause.json create mode 100644 third-party-licenses/spdx/v3.28.0/CC0-1.0.json create mode 100644 third-party-licenses/spdx/v3.28.0/ISC.json create mode 100644 third-party-licenses/spdx/v3.28.0/MIT.json create mode 100644 third-party-licenses/spdx/v3.28.0/OFL-1.1.json create mode 100644 third-party-licenses/spdx/v3.28.0/Unlicense.json diff --git a/apps/mobile/metro.config.js b/apps/mobile/metro.config.js index afbef3362d6d5..6371da34fd190 100644 --- a/apps/mobile/metro.config.js +++ b/apps/mobile/metro.config.js @@ -56,10 +56,6 @@ async function generateMobileThirdPartyLicenses() { const manifest = await generateThirdPartyLicenseManifest({ configFile: path.join(workspaceRoot, "third-party-licenses.config.json"), packageManifests: [{ bundle: "mobile", path: path.join(__dirname, "package.json") }], - allowMissingGeneratedNotices: - process.env.NODE_ENV !== "production" && - process.env.EAS_BUILD !== "true" && - process.env.T3CODE_LICENSES_STRICT !== "1", }); await Promise.all([ diff --git a/docs/internals/open-source-licenses.md b/docs/internals/open-source-licenses.md index ef7a6dba42966..2b40e5b52dc4c 100644 --- a/docs/internals/open-source-licenses.md +++ b/docs/internals/open-source-licenses.md @@ -25,11 +25,10 @@ Expo and React Native. That is conservative and can include build tooling that i the final JavaScript bundle, but it avoids dropping a notice when platform bundling changes. The build fails when a collected package has no distributable license identifier or contains no -license or notice text. Generated notices use license templates from the pinned SPDX License List. -Strict web and EAS builds download a missing template into the gitignored `.generated/` cache; -`pnpm licenses:sync` can warm that cache explicitly. Local web and Metro development do not make a -network request and omit generated rows until the cache exists. This keeps dev startup optional -while preventing incomplete release artifacts. +license or notice text. Generated notices use license templates from the pinned SPDX License List, +committed under `third-party-licenses/spdx/`. Builds never fetch them, so a network blip cannot +fail a build. A build fails when a configured template is missing; run `vp run licenses:sync` to +download it, then commit the new file. ## Custom notices and package overrides @@ -103,6 +102,5 @@ The `@react-grab/cli` override uses the root React Grab repository's MIT license npm archive omits both its license field and license file. Keep the override until the published CLI package carries that metadata itself. -Generated mobile files live under `apps/mobile/.generated/`, while fetched SPDX templates live -under the repository `.generated/` directory. Both are ignored. Do not commit or edit them; -updating dependencies or configuration is enough for the next strict build to refresh the output. +Generated mobile files live under `apps/mobile/.generated/` and are ignored. Do not commit or edit +them; updating dependencies or configuration is enough for the next build to refresh the output. diff --git a/scripts/lib/third-party-licenses.test.ts b/scripts/lib/third-party-licenses.test.ts index 6db2d4a5b857a..c9943ed24987d 100644 --- a/scripts/lib/third-party-licenses.test.ts +++ b/scripts/lib/third-party-licenses.test.ts @@ -161,15 +161,12 @@ describe("third-party license generation", () => { }); }); - it("renders generated notices from the ignored SPDX cache", async () => { + it("renders generated notices from the committed SPDX templates", async () => { const fixture = await createFixture(); - await writeJson( - NodePath.join(fixture.root, ".generated/third-party-licenses/spdx/v3.28.0/MIT.json"), - { - licenseId: "MIT", - licenseText: "MIT License\n\nCopyright (c) \n\nPermission text", - }, - ); + await writeJson(NodePath.join(fixture.root, "third-party-licenses/spdx/v3.28.0/MIT.json"), { + licenseId: "MIT", + licenseText: "MIT License\n\nCopyright (c) \n\nPermission text", + }); await writeJson(fixture.configFile, { customNotices: [ { @@ -364,10 +361,7 @@ describe("third-party license generation", () => { await NodeFSP.rm(NodePath.join(fixture.dependencyRoot, "LICENSE")); for (const licenseId of ["Apache-2.0", "BSD-3-Clause"]) { await writeJson( - NodePath.join( - fixture.root, - `.generated/third-party-licenses/spdx/v3.28.0/${licenseId}.json`, - ), + NodePath.join(fixture.root, `third-party-licenses/spdx/v3.28.0/${licenseId}.json`), { licenseId, licenseText: `${licenseId} terms` }, ); } diff --git a/scripts/lib/third-party-licenses.ts b/scripts/lib/third-party-licenses.ts index e8aca298507b2..097ff2cc583ae 100644 --- a/scripts/lib/third-party-licenses.ts +++ b/scripts/lib/third-party-licenses.ts @@ -10,7 +10,7 @@ import type { Plugin } from "vite-plus"; const THIRD_PARTY_LICENSES_FILE_NAME = "third-party-licenses.json"; const SPDX_LICENSE_LIST_VERSION = "v3.28.0"; const SPDX_LICENSE_LIST_REVISION = "c4a7237ec8f4654e867546f9f409749300f1bf4c"; -const GENERATED_NOTICE_CACHE_DIRECTORY = ".generated/third-party-licenses/spdx"; +const SPDX_TEMPLATE_DIRECTORY = "third-party-licenses/spdx"; export interface ThirdPartyLicenseEntry { readonly bundles: ReadonlyArray; @@ -312,10 +312,10 @@ async function readConfig(configFile: string | URL | undefined): Promise<{ }; } -function spdxLicenseCachePath(configDirectory: string, licenseId: string): string { +function spdxTemplatePath(configDirectory: string, licenseId: string): string { return NodePath.join( configDirectory, - GENERATED_NOTICE_CACHE_DIRECTORY, + SPDX_TEMPLATE_DIRECTORY, SPDX_LICENSE_LIST_VERSION, `${licenseId}.json`, ); @@ -333,12 +333,12 @@ function decodeSpdxLicenseDetails(value: unknown, expectedLicenseId: string): Sp return { licenseId: expectedLicenseId, licenseText: value.licenseText.trim() }; } -async function readCachedSpdxLicense( +async function readSpdxLicense( configDirectory: string, licenseId: string, ): Promise { try { - const source = await NodeFSP.readFile(spdxLicenseCachePath(configDirectory, licenseId), "utf8"); + const source = await NodeFSP.readFile(spdxTemplatePath(configDirectory, licenseId), "utf8"); return decodeSpdxLicenseDetails(JSON.parse(source) as unknown, licenseId); } catch (error) { const code = isRecord(error) && typeof error.code === "string" ? error.code : null; @@ -347,10 +347,7 @@ async function readCachedSpdxLicense( } } -async function downloadSpdxLicense( - configDirectory: string, - licenseId: string, -): Promise { +async function downloadSpdxLicense(configDirectory: string, licenseId: string): Promise { const url = `https://raw.githubusercontent.com/spdx/license-list-data/${SPDX_LICENSE_LIST_REVISION}/json/details/${encodeURIComponent(licenseId)}.json`; const response = await fetch(url); if (!response.ok) { @@ -359,20 +356,9 @@ async function downloadSpdxLicense( ); } const details = decodeSpdxLicenseDetails((await response.json()) as unknown, licenseId); - const cachePath = spdxLicenseCachePath(configDirectory, licenseId); - await NodeFSP.mkdir(NodePath.dirname(cachePath), { recursive: true }); - await NodeFSP.writeFile(cachePath, `${JSON.stringify(details)}\n`, "utf8"); - return details; -} - -async function resolveSpdxLicense( - configDirectory: string, - licenseId: string, - allowMissing: boolean, -): Promise { - const cached = await readCachedSpdxLicense(configDirectory, licenseId); - if (cached || allowMissing) return cached; - return downloadSpdxLicense(configDirectory, licenseId); + const templatePath = spdxTemplatePath(configDirectory, licenseId); + await NodeFSP.mkdir(NodePath.dirname(templatePath), { recursive: true }); + await NodeFSP.writeFile(templatePath, `${JSON.stringify(details, null, 2)}\n`, "utf8"); } function renderGeneratedNotice(config: GeneratedNoticeConfigEntry, licenseText: string): string { @@ -397,17 +383,19 @@ function renderGeneratedNotice(config: GeneratedNoticeConfigEntry, licenseText: async function generatedNoticeText( configs: ReadonlyArray, configDirectory: string, - allowMissing: boolean, -): Promise { +): Promise { const sections = await Promise.all( configs.map(async (config) => { - const details = await resolveSpdxLicense(configDirectory, config.licenseId, allowMissing); - return details ? renderGeneratedNotice(config, details.licenseText) : null; + const details = await readSpdxLicense(configDirectory, config.licenseId); + if (!details) { + throw new Error( + `SPDX license template ${config.licenseId} is missing. Run \`vp run licenses:sync\` and commit ${SPDX_TEMPLATE_DIRECTORY}.`, + ); + } + return renderGeneratedNotice(config, details.licenseText); }), ); - return sections.some((section) => section === null) - ? null - : (sections as ReadonlyArray).join("\n\n---\n\n"); + return sections.join("\n\n---\n\n"); } function configuredGeneratedNotices( @@ -426,7 +414,13 @@ async function syncConfiguredGeneratedNotices( const licenseIds = [ ...new Set(configuredGeneratedNotices(config).map((notice) => notice.licenseId)), ].sort((left, right) => left.localeCompare(right)); - await Promise.all(licenseIds.map((licenseId) => resolveSpdxLicense(directory, licenseId, false))); + await Promise.all( + licenseIds.map(async (licenseId) => { + if (!(await readSpdxLicense(directory, licenseId))) { + await downloadSpdxLicense(directory, licenseId); + } + }), + ); } export async function syncThirdPartyLicenseNotices(configFile: string | URL): Promise { @@ -844,8 +838,7 @@ async function packageEntry( configDirectory: string, packageNotices: Map>, repositoryNotices: ReadonlyMap, - allowMissingGeneratedNotices: boolean, -): Promise { +): Promise { const name = typeof collected.packageJson.name === "string" ? collected.packageJson.name @@ -867,11 +860,7 @@ async function packageEntry( const repositoryKey = repositoryNoticeKey(collected.packageJson, license); const noticeText = override?.generatedNotices - ? await generatedNoticeText( - override.generatedNotices, - configDirectory, - allowMissingGeneratedNotices, - ) + ? await generatedNoticeText(override.generatedNotices, configDirectory) : override?.noticeFile ? ( await NodeFSP.readFile(NodePath.resolve(configDirectory, override.noticeFile), "utf8") @@ -879,7 +868,6 @@ async function packageEntry( : ((await packageNoticeText(collected.packageRoot, packageNotices)) ?? (repositoryKey ? repositoryNotices.get(repositoryKey) : undefined)); if (!noticeText) { - if (override?.generatedNotices && allowMissingGeneratedNotices) return null; throw new Error( `${name}@${version} does not include a license or notice file. Add a package override with "noticeFile" or "generatedNotice" in the third-party license config.`, ); @@ -900,7 +888,6 @@ async function customEntries( config: ThirdPartyLicensesConfig, configDirectory: string, includedBundles: ReadonlySet, - allowMissingGeneratedNotices: boolean, ): Promise> { const deviceToolVersions: unknown = JSON.parse( await NodeFSP.readFile( @@ -920,11 +907,7 @@ async function customEntries( ) .map(async (notice) => { const noticeText = notice.generatedNotices - ? await generatedNoticeText( - notice.generatedNotices, - configDirectory, - allowMissingGeneratedNotices, - ) + ? await generatedNoticeText(notice.generatedNotices, configDirectory) : ( await Promise.all( notice.noticeFiles!.map(async (noticeFile) => { @@ -938,10 +921,6 @@ async function customEntries( }), ) ).join("\n\n---\n\n"); - if (noticeText === null) { - if (allowMissingGeneratedNotices) return null; - throw new Error(`Could not generate custom third-party notice "${notice.name}".`); - } if (noticeText.length === 0) { throw new Error(`Custom third-party notice "${notice.name}" is empty.`); } @@ -961,7 +940,7 @@ async function customEntries( }; }), ); - return entries.flatMap((entry) => (entry ? [entry] : [])); + return entries; } function entrySort(left: ThirdPartyLicenseEntry, right: ThirdPartyLicenseEntry): number { @@ -990,15 +969,11 @@ export async function generateThirdPartyLicenseManifest(input: { readonly packageManifests: ReadonlyArray; readonly bundledModuleIds?: ReadonlyArray; readonly bundleName?: string; - readonly allowMissingGeneratedNotices?: boolean; }): Promise { const [{ config, directory }, collection] = await Promise.all([ readConfig(input.configFile), collectProductionDependencyPackages(input.packageManifests), ]); - if (!(input.allowMissingGeneratedNotices ?? false)) { - await syncConfiguredGeneratedNotices(config, directory); - } if (input.bundledModuleIds && input.bundleName) { await addBundledModulePackages(collection, input.bundledModuleIds, input.bundleName); } @@ -1008,14 +983,7 @@ export async function generateThirdPartyLicenseManifest(input: { const packageEntryResults = await Promise.allSettled( [...collection.byIdentity.values()].map((collected) => - packageEntry( - collected, - config, - directory, - packageNotices, - repositoryNotices, - input.allowMissingGeneratedNotices ?? false, - ), + packageEntry(collected, config, directory, packageNotices, repositoryNotices), ), ); const failures = packageEntryResults.flatMap((result) => @@ -1029,16 +997,11 @@ export async function generateThirdPartyLicenseManifest(input: { ); } const packageEntries = packageEntryResults.flatMap((result) => - result.status === "fulfilled" && result.value ? [result.value] : [], + result.status === "fulfilled" ? [result.value] : [], ); const includedBundles = new Set(input.packageManifests.map((manifest) => manifest.bundle)); if (input.bundleName) includedBundles.add(input.bundleName); - const manualEntries = await customEntries( - config, - directory, - includedBundles, - input.allowMissingGeneratedNotices ?? false, - ); + const manualEntries = await customEntries(config, directory, includedBundles); const entries = [...packageEntries, ...manualEntries].sort(entrySort); assertUniqueEntries(entries); return { @@ -1074,7 +1037,6 @@ export function thirdPartyLicensesPlugin(options: ThirdPartyLicensesPluginOption manifestPromise ??= generateThirdPartyLicenseManifest({ packageManifests: options.packageManifests, bundleName: options.bundleName, - allowMissingGeneratedNotices: true, ...(options.configFile !== undefined ? { configFile: options.configFile } : {}), }).catch((error: unknown) => { manifestPromise = null; diff --git a/third-party-licenses/spdx/v3.28.0/Apache-2.0.json b/third-party-licenses/spdx/v3.28.0/Apache-2.0.json new file mode 100644 index 0000000000000..09b4b74a86732 --- /dev/null +++ b/third-party-licenses/spdx/v3.28.0/Apache-2.0.json @@ -0,0 +1,4 @@ +{ + "licenseId": "Apache-2.0", + "licenseText": "Apache License\nVersion 2.0, January 2004\nhttp://www.apache.org/licenses/\n\nTERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n1. Definitions.\n\n\"License\" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.\n\n\"Licensor\" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.\n\n\"Legal Entity\" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, \"control\" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.\n\n\"You\" (or \"Your\") shall mean an individual or Legal Entity exercising permissions granted by this License.\n\n\"Source\" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.\n\n\"Object\" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.\n\n\"Work\" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).\n\n\"Derivative Works\" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.\n\n\"Contribution\" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, \"submitted\" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as \"Not a Contribution.\"\n\n\"Contributor\" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.\n\n2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.\n\n3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.\n\n4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:\n\n (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License.\n\n You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.\n\n5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.\n\n6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.\n\n7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.\n\n8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.\n\n9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.\n\nEND OF TERMS AND CONDITIONS\n\nAPPENDIX: How to apply the Apache License to your work.\n\nTo apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets \"[]\" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same \"printed page\" as the copyright notice for easier identification within third-party archives.\n\nCopyright [yyyy] [name of copyright owner]\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\nhttp://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License." +} diff --git a/third-party-licenses/spdx/v3.28.0/BSD-2-Clause.json b/third-party-licenses/spdx/v3.28.0/BSD-2-Clause.json new file mode 100644 index 0000000000000..2d4b00772d984 --- /dev/null +++ b/third-party-licenses/spdx/v3.28.0/BSD-2-Clause.json @@ -0,0 +1,4 @@ +{ + "licenseId": "BSD-2-Clause", + "licenseText": "Copyright (c) \n\nRedistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:\n\n1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.\n\n2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE." +} diff --git a/third-party-licenses/spdx/v3.28.0/BSD-3-Clause.json b/third-party-licenses/spdx/v3.28.0/BSD-3-Clause.json new file mode 100644 index 0000000000000..78203d9075e1b --- /dev/null +++ b/third-party-licenses/spdx/v3.28.0/BSD-3-Clause.json @@ -0,0 +1,4 @@ +{ + "licenseId": "BSD-3-Clause", + "licenseText": "Copyright (c) . \n\nRedistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:\n\n1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.\n\n2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.\n\n3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE." +} diff --git a/third-party-licenses/spdx/v3.28.0/CC0-1.0.json b/third-party-licenses/spdx/v3.28.0/CC0-1.0.json new file mode 100644 index 0000000000000..cdef4677d0e6a --- /dev/null +++ b/third-party-licenses/spdx/v3.28.0/CC0-1.0.json @@ -0,0 +1,4 @@ +{ + "licenseId": "CC0-1.0", + "licenseText": "Creative Commons Legal Code\n\nCC0 1.0 Universal\n\n CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE\n LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN\n ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS\n INFORMATION ON AN \"AS-IS\" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES\n REGARDING THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS\n PROVIDED HEREUNDER, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM\n THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED\n HEREUNDER.\n\nStatement of Purpose\n\nThe laws of most jurisdictions throughout the world automatically confer\nexclusive Copyright and Related Rights (defined below) upon the creator\nand subsequent owner(s) (each and all, an \"owner\") of an original work of\nauthorship and/or a database (each, a \"Work\").\n\nCertain owners wish to permanently relinquish those rights to a Work for\nthe purpose of contributing to a commons of creative, cultural and\nscientific works (\"Commons\") that the public can reliably and without fear\nof later claims of infringement build upon, modify, incorporate in other\nworks, reuse and redistribute as freely as possible in any form whatsoever\nand for any purposes, including without limitation commercial purposes.\nThese owners may contribute to the Commons to promote the ideal of a free\nculture and the further production of creative, cultural and scientific\nworks, or to gain reputation or greater distribution for their Work in\npart through the use and efforts of others.\n\nFor these and/or other purposes and motivations, and without any\nexpectation of additional consideration or compensation, the person\nassociating CC0 with a Work (the \"Affirmer\"), to the extent that he or she\nis an owner of Copyright and Related Rights in the Work, voluntarily\nelects to apply CC0 to the Work and publicly distribute the Work under its\nterms, with knowledge of his or her Copyright and Related Rights in the\nWork and the meaning and intended legal effect of CC0 on those rights.\n\n1. Copyright and Related Rights. A Work made available under CC0 may be\nprotected by copyright and related or neighboring rights (\"Copyright and\nRelated Rights\"). Copyright and Related Rights include, but are not\nlimited to, the following:\n\n i. the right to reproduce, adapt, distribute, perform, display,\n communicate, and translate a Work;\n ii. moral rights retained by the original author(s) and/or performer(s);\niii. publicity and privacy rights pertaining to a person's image or\n likeness depicted in a Work;\n iv. rights protecting against unfair competition in regards to a Work,\n subject to the limitations in paragraph 4(a), below;\n v. rights protecting the extraction, dissemination, use and reuse of data\n in a Work;\n vi. database rights (such as those arising under Directive 96/9/EC of the\n European Parliament and of the Council of 11 March 1996 on the legal\n protection of databases, and under any national implementation\n thereof, including any amended or successor version of such\n directive); and\nvii. other similar, equivalent or corresponding rights throughout the\n world based on applicable law or treaty, and any national\n implementations thereof.\n\n2. Waiver. To the greatest extent permitted by, but not in contravention\nof, applicable law, Affirmer hereby overtly, fully, permanently,\nirrevocably and unconditionally waives, abandons, and surrenders all of\nAffirmer's Copyright and Related Rights and associated claims and causes\nof action, whether now known or unknown (including existing as well as\nfuture claims and causes of action), in the Work (i) in all territories\nworldwide, (ii) for the maximum duration provided by applicable law or\ntreaty (including future time extensions), (iii) in any current or future\nmedium and for any number of copies, and (iv) for any purpose whatsoever,\nincluding without limitation commercial, advertising or promotional\npurposes (the \"Waiver\"). Affirmer makes the Waiver for the benefit of each\nmember of the public at large and to the detriment of Affirmer's heirs and\nsuccessors, fully intending that such Waiver shall not be subject to\nrevocation, rescission, cancellation, termination, or any other legal or\nequitable action to disrupt the quiet enjoyment of the Work by the public\nas contemplated by Affirmer's express Statement of Purpose.\n\n3. Public License Fallback. Should any part of the Waiver for any reason\nbe judged legally invalid or ineffective under applicable law, then the\nWaiver shall be preserved to the maximum extent permitted taking into\naccount Affirmer's express Statement of Purpose. In addition, to the\nextent the Waiver is so judged Affirmer hereby grants to each affected\nperson a royalty-free, non transferable, non sublicensable, non exclusive,\nirrevocable and unconditional license to exercise Affirmer's Copyright and\nRelated Rights in the Work (i) in all territories worldwide, (ii) for the\nmaximum duration provided by applicable law or treaty (including future\ntime extensions), (iii) in any current or future medium and for any number\nof copies, and (iv) for any purpose whatsoever, including without\nlimitation commercial, advertising or promotional purposes (the\n\"License\"). The License shall be deemed effective as of the date CC0 was\napplied by Affirmer to the Work. Should any part of the License for any\nreason be judged legally invalid or ineffective under applicable law, such\npartial invalidity or ineffectiveness shall not invalidate the remainder\nof the License, and in such case Affirmer hereby affirms that he or she\nwill not (i) exercise any of his or her remaining Copyright and Related\nRights in the Work or (ii) assert any associated claims and causes of\naction with respect to the Work, in either case contrary to Affirmer's\nexpress Statement of Purpose.\n\n4. Limitations and Disclaimers.\n\n a. No trademark or patent rights held by Affirmer are waived, abandoned,\n surrendered, licensed or otherwise affected by this document.\n b. Affirmer offers the Work as-is and makes no representations or\n warranties of any kind concerning the Work, express, implied,\n statutory or otherwise, including without limitation warranties of\n title, merchantability, fitness for a particular purpose, non\n infringement, or the absence of latent or other defects, accuracy, or\n the present or absence of errors, whether or not discoverable, all to\n the greatest extent permissible under applicable law.\n c. Affirmer disclaims responsibility for clearing rights of other persons\n that may apply to the Work or any use thereof, including without\n limitation any person's Copyright and Related Rights in the Work.\n Further, Affirmer disclaims responsibility for obtaining any necessary\n consents, permissions or other rights required for any use of the\n Work.\n d. Affirmer understands and acknowledges that Creative Commons is not a\n party to this document and has no duty or obligation with respect to\n this CC0 or use of the Work." +} diff --git a/third-party-licenses/spdx/v3.28.0/ISC.json b/third-party-licenses/spdx/v3.28.0/ISC.json new file mode 100644 index 0000000000000..d7f2d094f7dd9 --- /dev/null +++ b/third-party-licenses/spdx/v3.28.0/ISC.json @@ -0,0 +1,4 @@ +{ + "licenseId": "ISC", + "licenseText": "ISC License:\n\nCopyright (c) 2004-2010 by Internet Systems Consortium, Inc. (\"ISC\")\nCopyright (c) 1995-2003 by Internet Software Consortium\n\nPermission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND ISC DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE." +} diff --git a/third-party-licenses/spdx/v3.28.0/MIT.json b/third-party-licenses/spdx/v3.28.0/MIT.json new file mode 100644 index 0000000000000..5b177dd4a0c07 --- /dev/null +++ b/third-party-licenses/spdx/v3.28.0/MIT.json @@ -0,0 +1,4 @@ +{ + "licenseId": "MIT", + "licenseText": "MIT License\n\nCopyright (c) \n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and\nassociated documentation files (the \"Software\"), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the\nfollowing conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial\nportions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT\nLIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO\nEVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\nUSE OR OTHER DEALINGS IN THE SOFTWARE." +} diff --git a/third-party-licenses/spdx/v3.28.0/OFL-1.1.json b/third-party-licenses/spdx/v3.28.0/OFL-1.1.json new file mode 100644 index 0000000000000..bd7b4c2fdb650 --- /dev/null +++ b/third-party-licenses/spdx/v3.28.0/OFL-1.1.json @@ -0,0 +1,4 @@ +{ + "licenseId": "OFL-1.1", + "licenseText": "SIL OPEN FONT LICENSE\n\nVersion 1.1 - 26 February 2007\n\nPREAMBLE\n\nThe goals of the Open Font License (OFL) are to stimulate worldwide development of collaborative font projects, to support the font creation efforts of academic and linguistic communities, and to provide a free and open framework in which fonts may be shared and improved in partnership with others.\n\nThe OFL allows the licensed fonts to be used, studied, modified and redistributed freely as long as they are not sold by themselves. The fonts, including any derivative works, can be bundled, embedded, redistributed and/or sold with any software provided that any reserved names are not used by derivative works. The fonts and derivatives, however, cannot be released under any other type of license. The requirement for fonts to remain under this license does not apply to any document created using the fonts or their derivatives.\n\nDEFINITIONS\n\n\"Font Software\" refers to the set of files released by the Copyright Holder(s) under this license and clearly marked as such. This may include source files, build scripts and documentation.\n\n\"Reserved Font Name\" refers to any names specified as such after the copyright statement(s).\n\n\"Original Version\" refers to the collection of Font Software components as distributed by the Copyright Holder(s).\n\n\"Modified Version\" refers to any derivative made by adding to, deleting, or substituting — in part or in whole — any of the components of the Original Version, by changing formats or by porting the Font Software to a new environment.\n\n\"Author\" refers to any designer, engineer, programmer, technical writer or other person who contributed to the Font Software.\n\nPERMISSION & CONDITIONS\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of the Font Software, to use, study, copy, merge, embed, modify, redistribute, and sell modified and unmodified copies of the Font Software, subject to the following conditions:\n\n1) Neither the Font Software nor any of its individual components, in Original or Modified Versions, may be sold by itself.\n\n2) Original or Modified Versions of the Font Software may be bundled, redistributed and/or sold with any software, provided that each copy contains the above copyright notice and this license. These can be included either as stand-alone text files, human-readable headers or in the appropriate machine-readable metadata fields within text or binary files as long as those fields can be easily viewed by the user.\n\n3) No Modified Version of the Font Software may use the Reserved Font Name(s) unless explicit written permission is granted by the corresponding Copyright Holder. This restriction only applies to the primary font name as presented to the users.\n\n4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font Software shall not be used to promote, endorse or advertise any Modified Version, except to acknowledge the contribution(s) of the Copyright Holder(s) and the Author(s) or with their explicit written permission.\n\n5) The Font Software, modified or unmodified, in part or in whole, must be distributed entirely under this license, and must not be distributed under any other license. The requirement for fonts to remain under this license does not apply to any document created using the Font Software.\n\nTERMINATION\n\nThis license becomes null and void if any of the above conditions are not met.\n\nDISCLAIMER\n\nTHE FONT SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE." +} diff --git a/third-party-licenses/spdx/v3.28.0/Unlicense.json b/third-party-licenses/spdx/v3.28.0/Unlicense.json new file mode 100644 index 0000000000000..3e9f0519f8901 --- /dev/null +++ b/third-party-licenses/spdx/v3.28.0/Unlicense.json @@ -0,0 +1,4 @@ +{ + "licenseId": "Unlicense", + "licenseText": "This is free and unencumbered software released into the public domain.\n\nAnyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a compiled binary, for any purpose, commercial or non-commercial, and by any means.\n\nIn jurisdictions that recognize copyright laws, the author or authors of this software dedicate any and all copyright interest in the software to the public domain. We make this dedication for the benefit of the public at large and to the detriment of our heirs and\nsuccessors. We intend this dedication to be an overt act of relinquishment in perpetuity of all present and future rights to this software under copyright law.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\nFor more information, please refer to " +}