Commit f7c9b30
committed
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 4fb5921..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 (https://github.com/rust-lang/llvm-project/blob/7738295178045041669876bf32b0543ec8319a5c/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 4fb5921..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": [
```1 parent dc2c356 commit f7c9b30
1 file changed
+11
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
208 | 209 | | |
209 | 210 | | |
210 | 211 | | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
211 | 222 | | |
212 | 223 | | |
213 | 224 | | |
| |||
0 commit comments