rustbuild: Fix source tarballs and the vendor dir

The source tarball creation step would attempt to skip a number of files that we
want to ignore ourselves, but once we've hit the vendor directory we don't want
to skip anything so be sure to vendor everything inside that directory.

Closes #38690
This commit is contained in:
Alex Crichton 2016-12-30 09:29:21 -08:00
parent 7f2d2afa91
commit d0881eaec7

View File

@ -397,6 +397,13 @@ pub fn rust_src(build: &Build, host: &str) {
}
}
// If we're inside the vendor directory then we need to preserve
// everything as Cargo's vendoring support tracks all checksums and we
// want to be sure we don't accidentally leave out a file.
if spath.contains("vendor") {
return true
}
let excludes = [
"CVS", "RCS", "SCCS", ".git", ".gitignore", ".gitmodules",
".gitattributes", ".cvsignore", ".svn", ".arch-ids", "{arch}",