Open glandium opened 5 years ago
@glandium question: how are you vendoring a git dependency? I can't seem to find what to include in the .cargo/config
file to overwrite the git source with the vendored files.. (Even though cargo-vendor actually downloads the dependencies into the folder.)
With [patch.crates-io]
in Cargo.toml. See https://phabricator.services.mozilla.com/D18767#change-rFeP59HZ8M0a
When we vendor forked versions of crates from git repositories in Firefox, cargo vendor adds plenty of files that wouldn't be there if the crate had been published on crates.io, like CI files, .gitignore, etc. Even Cargo.toml is normalized, and this makes vendoring more noisy than necessary.
See e.g. https://phabricator.services.mozilla.com/D18767 https://phabricator.services.mozilla.com/D20289
(originally filed as https://github.com/alexcrichton/cargo-vendor/issues/203)