File tree 2 files changed +5
-3
lines changed
2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -1590,10 +1590,14 @@ impl GlobalContext {
1590
1590
}
1591
1591
}
1592
1592
1593
+ // Need to check the `$CARGO_HOME/config` have been warned already.
1594
+ let home_config_without_extention = home. join ( "config" ) ;
1595
+ let already_warned = stash. contains ( & home_config_without_extention) ;
1596
+
1593
1597
// Once we're done, also be sure to walk the home directory even if it's not
1594
1598
// in our history to be sure we pick up that standard location for
1595
1599
// information.
1596
- if let Some ( path) = self . get_file_path ( home, "config" , true ) ? {
1600
+ if let Some ( path) = self . get_file_path ( home, "config" , !already_warned ) ? {
1597
1601
if !stash. contains ( & path) {
1598
1602
walk ( & path) ?;
1599
1603
}
Original file line number Diff line number Diff line change @@ -315,8 +315,6 @@ f1 = 1
315
315
. with_stderr_data ( str![ [ r#"
316
316
[WARNING] `[ROOT]/.cargo/config` is deprecated in favor of `config.toml`
317
317
[NOTE] if you need to support cargo 1.38 or earlier, you can symlink `config` to `config.toml`
318
- [WARNING] `[ROOT]/.cargo/config` is deprecated in favor of `config.toml`
319
- [NOTE] if you need to support cargo 1.38 or earlier, you can symlink `config` to `config.toml`
320
318
321
319
"# ] ] )
322
320
. run ( ) ;
You can’t perform that action at this time.
0 commit comments