File tree Expand file tree Collapse file tree 2 files changed +10
-13
lines changed Expand file tree Collapse file tree 2 files changed +10
-13
lines changed Original file line number Diff line number Diff line change @@ -572,15 +572,12 @@ impl Config {
572
572
return ;
573
573
}
574
574
575
- match self . upper_case_env . get ( key. as_env_key ( ) ) {
576
- Some ( env_key) => {
577
- let _ = self . shell ( ) . warn ( format ! (
578
- "Environment variables require uppercase letters, \
579
- but the variable: `{}` contains lowercase letters or dashes.",
580
- env_key
581
- ) ) ;
582
- }
583
- None => { }
575
+ if let Some ( env_key) = self . upper_case_env . get ( key. as_env_key ( ) ) {
576
+ let _ = self . shell ( ) . warn ( format ! (
577
+ "Environment variables are expected to use uppercase letters and underscores, \
578
+ the variable {} will be ignored and have no effect",
579
+ env_key
580
+ ) ) ;
584
581
}
585
582
}
586
583
Original file line number Diff line number Diff line change @@ -368,8 +368,8 @@ fn target_in_environment_contains_lower_case() {
368
368
. env ( target_key, "nonexistent-linker" )
369
369
. with_status ( 101 )
370
370
. with_stderr_contains ( format ! (
371
- "warning: Environment variables require uppercase letters, \
372
- but the variable: `{}` contains lowercase letters or dashes. ",
371
+ "warning: Environment variables are expected to use uppercase letters and underscores , \
372
+ the variable {} will be ignored and have no effect ",
373
373
target_key
374
374
) )
375
375
. run ( ) ;
@@ -391,8 +391,8 @@ fn target_in_environment_contains_lower_case_on_windows() {
391
391
. env ( target_key, "nonexistent-linker" )
392
392
. with_status ( 101 )
393
393
. with_stderr_does_not_contain ( format ! (
394
- "warning: Environment variables require uppercase letters, \
395
- but the variable: `{}` contains lowercase letters or dashes. ",
394
+ "warning: Environment variables are expected to use uppercase letters and underscores , \
395
+ the variable {} will be ignored and have no effect ",
396
396
target_key
397
397
) )
398
398
. run ( ) ;
You can’t perform that action at this time.
0 commit comments