You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(vendor): dont use PathSource heuristic when copying files
`PathSource::list_files` has some heurstic rules for listing files.
Those rules are mainly designed `cargo package`.
Previously, cargo-vendor relies on those rules to understand what files
to vendor. However, it shouldn't use those rules because
* Package extracted from a `.crate` tarball isn't Git-controlled,
some rules may apply differently.
* The extracted package already went through `PathSource::list_files`
when packaging. It is clean enough.
* Should keep crate sources from registry sources in a pristine state,
which is exactly what vendoring is meant for.
Since cargo-vendor already removes and re-extracts crates of registry
sources, we can assume they are not modified, and copy them directly
into the vendor directory. That is this fix.
0 commit comments