Skip to content

Cargo vendor with patch section and local sources does not vendor the local files #9172

@Firstyear

Description

@Firstyear

Problem
If a patch section contains a specification with a "path" override, cargo vendor does not vendor these content to the vendor directory.

Steps
Add a patch statement such as:

[patch.crates-io]
mycrate = { path = "../mycrate" }

Then run cargo vendor

Possible Solution(s)
Cargo vendor should copy the content of the crate (excluding git artefacts) to the vendor directory.

Notes

cargo 1.50.0 (f04e7fa 2021-02-04)

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-patchArea: [patch] table overrideA-source-replacementArea: [source] replacementC-bugCategory: bugCommand-vendorS-needs-designStatus: Needs someone to work further on the design for the feature or fix. NOT YET accepted.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions