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 66use std:: path:: PathBuf ;
77
88use build_helper:: exit;
9+ use build_helper:: git:: get_git_untracked_files;
910use clap_complete:: { Generator , shells} ;
1011
1112use crate :: core:: build_steps:: dist:: distdir;
@@ -208,6 +209,16 @@ impl Step for CollectLicenseMetadata {
208209
209210 let dest = builder. src . join ( "license-metadata.json" ) ;
210211
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+
211222 let mut cmd = builder. tool_cmd ( Tool :: CollectLicenseMetadata ) ;
212223 cmd. env ( "REUSE_EXE" , reuse) ;
213224 cmd. env ( "DEST" , & dest) ;
You can’t perform that action at this time.
0 commit comments