File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ fn dump_flags(cache_dir: &Path, version: &str) -> Vec<u8> {
2020 } ;
2121 let result = bazelisk_cmd
2222 . env ( "USE_BAZEL_VERSION" , version)
23+ . arg ( "--ignore_all_rc_files" )
2324 . arg ( "help" )
2425 . arg ( "flags-as-proto" )
2526 . output ( )
@@ -134,10 +135,12 @@ fn main() -> Result<()> {
134135 let ( mut deprecated_watchfs, mut non_deprecated_watchfs) : ( Vec < _ > , Vec < _ > ) = watchfs_flags
135136 . into_iter ( )
136137 . partition ( |f| f. metadata_tags . contains ( & "DEPRECATED" . to_string ( ) ) ) ;
137- for flag in & mut deprecated_watchfs {
138- non_deprecated_watchfs[ 0 ]
139- . bazel_versions
140- . append ( & mut flag. bazel_versions ) ;
138+ if !non_deprecated_watchfs. is_empty ( ) {
139+ for flag in & mut deprecated_watchfs {
140+ non_deprecated_watchfs[ 0 ]
141+ . bazel_versions
142+ . append ( & mut flag. bazel_versions ) ;
143+ }
141144 }
142145 flags_by_name. insert ( "watchfs" . to_string ( ) , non_deprecated_watchfs) ;
143146
You can’t perform that action at this time.
0 commit comments