mirror of
https://github.com/rust-lang/rust.git
synced 2026-01-21 09:30:38 +00:00
collect-license-metadata: update submodules before running
Previously, this could cause incorrect failures like the following:
```
diff --git a/license-metadata.json b/license-metadata.json
index 4fb59210854..b1291c00b94 100644
--- a/license-metadata.json
+++ b/license-metadata.json
`@@` -244,19 +172,6 `@@`
},
"name": "src/doc/rustc-dev-guide/mermaid.min.js",
"type": "file"
- },
- {
- "children": [],
- "license": {
- "copyright": [
- "2003-2019 University of Illinois at Urbana-Champaign",
- "2003-2019 by the contributors listed in CREDITS.TXT (7738295178/llvm/CREDITS.TXT)",
- "2010 Apple Inc"
- ],
- "spdx": "Apache-2.0 WITH LLVM-exception AND NCSA"
- },
- "name": "src/llvm-project",
- "type": "directory"
```
Additionally, this prints a warning if there were untracked files, which could cause a failure like the following:
```
diff --git a/license-metadata.json b/license-metadata.json
index 4fb59210854..ebf1c478282 100644
--- a/license-metadata.json
+++ b/license-metadata.json
`@@` -155,6 +155,22 `@@`
"name": "src/librustdoc/html/static/fonts",
"type": "directory"
},
+ {
+ "directories": [],
+ "files": [
+ "2015-edition.txt",
+ "diagnostics.json",
+ "license.diff",
+ "test.fixed.rs"
+ ],
+ "license": {
+ "copyright": [
+ "NONE"
+ ],
+ "spdx": "NONE"
+ },
+ "type": "group"
+ },
{
"license": {
"copyright": [
```
r? `@Kobzol` cc rust-lang/rust#147422
This directory contains some source code for the Rust project, including:
- The bootstrapping build system
- Various submodules for tools, like cargo, tidy, etc.
For more information on how various parts of the compiler work, see the rustc dev guide.