Description
I have a bin project which I want to install from a git repository with cargo install --git ...
.
I have some files named Cargo.toml
on my tests. These files are not meant to be used by Cargo but only for my tests, and some of them are intentionally malformed.
Installing from git doesn't work correctly because of this. It looks like Cargo seek to find and interpret all Cargo.toml
files on the repository, and then, obviously, it breaks the compilation because of these malformed files.
Strangely, it works correctly if I use cargo install --path ...
on a local cloned repository.
By the way, if I change the call to PathSource::new_recursive(..)
by PathSource::new(..)
on cargo/sources/git/source.rs
file, it works correctly for my case.
I looked on Cargo source code, but didn't find why this recursive search is required?
Is there a way to disable it, or at least on tests
folder?