Skip to content

Commit 88e8892

Browse files
committed
Explain why normalizing slashes on vendor config output
1 parent f7e1735 commit 88e8892

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/cargo/ops/vendor.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,9 @@ fn sync(
298298
config.insert(
299299
merged_source_name.to_string(),
300300
VendorSource::Directory {
301+
// Windows-flavour paths are valid here on Windows but Unix.
302+
// This backslash normalization is for making output paths more
303+
// cross-platform compatible.
301304
directory: opts.destination.to_string_lossy().replace("\\", "/"),
302305
},
303306
);

0 commit comments

Comments
 (0)