mirror of
https://github.com/rust-lang/cargo.git
synced 2025-09-25 11:14:46 +00:00
Fix shared_std_dependency_rebuild running on Windows (#15111)
This fixes the `standard_lib::shared_std_dependency_rebuild` test while running on Windows. On my system, `CARGO_MANIFEST_DIR` is a normal windows-style path (`D:\rust\cargo`) with backslashes. That is not valid TOML syntax. I don't know why this doesn't fail on CI (maybe CI sets a unix-style current dir?).
This commit is contained in:
commit
f71f565bbd
@ -264,7 +264,7 @@ fn shared_std_dependency_rebuild() {
|
||||
[build-dependencies]
|
||||
dep_test = {{ path = \"{}/tests/testsuite/mock-std/dep_test\" }}
|
||||
",
|
||||
manifest_dir
|
||||
manifest_dir.replace('\\', "/")
|
||||
)
|
||||
.as_str(),
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user