We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 378e292 commit f7e1735Copy full SHA for f7e1735
src/cargo/ops/vendor.rs
@@ -60,7 +60,7 @@ struct VendorConfig {
60
#[serde(rename_all = "lowercase", untagged)]
61
enum VendorSource {
62
Directory {
63
- directory: PathBuf,
+ directory: String,
64
},
65
Registry {
66
registry: Option<String>,
@@ -298,7 +298,7 @@ fn sync(
298
config.insert(
299
merged_source_name.to_string(),
300
VendorSource::Directory {
301
- directory: opts.destination.to_path_buf(),
+ directory: opts.destination.to_string_lossy().replace("\\", "/"),
302
303
);
304
} else if !dest_dir_already_exists {
0 commit comments