Skip to content

Invalid vendor path example #10652

@Zymlex

Description

@Zymlex

Problem

On Windows, when specifying a path with a backslash:

cargo vendor "deps\.third_party" --versioned-dirs

the vendor also suggest a path with a backslash:

[source.crates-io]
replace-with = "vendored-sources"

[source.vendored-sources]
directory = 'deps\.third_party'

but this is not valid path for cargo.

Version

cargo 1.62.0-nightly (a44758ac8 2022-05-04)
release: 1.62.0-nightly
commit-hash: a44758ac805600edbb6ba51e7e6fb81a6077c0cd
commit-date: 2022-05-04
host: x86_64-pc-windows-msvc
libgit2: 1.4.2 (sys:0.14.2 vendored)
libcurl: 7.80.0-DEV (sys:0.4.51+curl-7.80.0 vendored ssl:Schannel)
os: Windows 10.0.17763 (Windows Server 2019) [64-bit]

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions