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
Rollup merge of #133453 - ferrocene:check-license-metadata, r=Kobzol
Commit license-metadata.json to git and check it's correct in CI
This PR adds `license-metadata.json` to the root of the git repo, and changes `mingw-check` to check that the file is still up-to-date.
By committing this file, we remove the need for developers to a) have reuse installed or b) run an expensive ~90 second analysis of the files on disk when they want generate the COPYRIGHT.html files which depend on this license metadata.
The file will need updating whenever `REUSE.toml` changes, or when git submodules are added, or when git submodules change their license information (as detected by REUSE).
You can now run:
* `./x run collect-license-metadata` to update the `./license-metadata.json` file
* `./x test collect-license-metadata` to test the `./license-metadata.json` file for correctness
The comparison is done with two `serde_json::Value` objects, so the map objects they contain should ignore differences in ordering.
"The Rust Project Developers (see https://thanks.rust-lang.org)"
215
+
],
216
+
"spdx": "Apache-2.0 OR CC-BY-SA-4.0 OR MIT"
217
+
},
218
+
"name": "src/doc/embedded-book",
219
+
"type": "directory"
220
+
},
221
+
{
222
+
"children": [],
223
+
"license": {
224
+
"copyright": [
225
+
"2014 Jorge Aparicio",
226
+
"The Rust Project Developers (see https://thanks.rust-lang.org)"
227
+
],
228
+
"spdx": "Apache-2.0 OR MIT"
229
+
},
230
+
"name": "src/doc/rust-by-example",
231
+
"type": "directory"
232
+
},
233
+
{
234
+
"license": {
235
+
"copyright": [
236
+
"2014-2021 Knut Sveidqvist"
237
+
],
238
+
"spdx": "MIT"
239
+
},
240
+
"name": "src/doc/rustc-dev-guide/mermaid.min.js",
241
+
"type": "file"
242
+
},
243
+
{
244
+
"children": [],
245
+
"license": {
246
+
"copyright": [
247
+
"2003-2019 University of Illinois at Urbana-Champaign",
248
+
"2003-2019 by the contributors listed in CREDITS.TXT (https://github.com/rust-lang/llvm-project/blob/7738295178045041669876bf32b0543ec8319a5c/llvm/CREDITS.TXT)",
249
+
"2010 Apple Inc"
250
+
],
251
+
"spdx": "Apache-2.0 WITH LLVM-exception AND NCSA"
252
+
},
253
+
"name": "src/llvm-project",
254
+
"type": "directory"
255
+
}
256
+
],
257
+
"license": {
258
+
"copyright": [
259
+
"The Rust Project Developers (see https://thanks.rust-lang.org)"
0 commit comments