File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
src/bootstrap/src/core/build_steps Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change 6
6
use std:: path:: PathBuf ;
7
7
8
8
use build_helper:: exit;
9
+ use build_helper:: git:: get_git_untracked_files;
9
10
use clap_complete:: { Generator , shells} ;
10
11
11
12
use crate :: core:: build_steps:: dist:: distdir;
@@ -208,6 +209,16 @@ impl Step for CollectLicenseMetadata {
208
209
209
210
let dest = builder. src . join ( "license-metadata.json" ) ;
210
211
212
+ if !builder. config . dry_run ( ) {
213
+ builder. require_and_update_all_submodules ( ) ;
214
+ if let Ok ( Some ( untracked) ) = get_git_untracked_files ( None ) {
215
+ eprintln ! (
216
+ "Warning: {} untracked files may cause the license report to be incorrect." ,
217
+ untracked. len( )
218
+ ) ;
219
+ }
220
+ }
221
+
211
222
let mut cmd = builder. tool_cmd ( Tool :: CollectLicenseMetadata ) ;
212
223
cmd. env ( "REUSE_EXE" , reuse) ;
213
224
cmd. env ( "DEST" , & dest) ;
You can’t perform that action at this time.
0 commit comments