File tree 2 files changed +9
-1
lines changed
crates/cargo-test-macro/src
2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -116,6 +116,8 @@ jobs:
116
116
CARGO_PROFILE_TEST_DEBUG : 1
117
117
CARGO_INCREMENTAL : 0
118
118
CARGO_PUBLIC_NETWORK_TESTS : 1
119
+ # Workaround for https://github.com/rust-lang/rustup/issues/3036
120
+ RUSTUP_WINDOWS_PATH_ADD_BIN : 0
119
121
strategy :
120
122
matrix :
121
123
include :
@@ -170,7 +172,6 @@ jobs:
170
172
- name : Configure extra test environment
171
173
run : echo CARGO_CONTAINER_TESTS=1 >> $GITHUB_ENV
172
174
if : matrix.os == 'ubuntu-latest'
173
-
174
175
- run : cargo test -p cargo
175
176
- name : Clear intermediate test output
176
177
run : ci/clean-test-output.sh
Original file line number Diff line number Diff line change @@ -248,6 +248,13 @@ fn has_rustup_stable() -> bool {
248
248
// This cannot run on rust-lang/rust CI due to the lack of rustup.
249
249
return false ;
250
250
}
251
+ if cfg ! ( windows) && !is_ci ( ) && option_env ! ( "RUSTUP_WINDOWS_PATH_ADD_BIN" ) . is_none ( ) {
252
+ // There is an issue with rustup that doesn't allow recursive cargo
253
+ // invocations. Disable this on developer machines if the environment
254
+ // variable is not enabled. This can be removed once
255
+ // https://github.com/rust-lang/rustup/issues/3036 is resolved.
256
+ return false ;
257
+ }
251
258
check_command ( "cargo" , & [ "+stable" , "--version" ] )
252
259
}
253
260
You can’t perform that action at this time.
0 commit comments