I have a Rust project where I vendor my dependencies. This is what my .cargo/config.toml looks like:
# Vendor dependencies from crates.io (but do not check them into Git.)
[source.crates-io]
replace-with = "vendored-sources"
[source.vendored-sources]
directory = "vendor"
After some time, I added a Rust crate in a GitHub repository (not crates.io) to my Cargo.toml, which now has a section that looks like:
[dependencies.symphonia]
git = "https://github.com/neocrym-forks/Symphonia"
rev = "2cafae82b664ceb14dd5d058f534574399764165"
But now when I run the command cargo vendor --versioned-dirs --quiet, I get the following error message:
error: failed to sync
Caused by:
failed to write `vendor/symphonia-0.3.0/.cargo-checksum.json`
What went wrong?