Don't check for cargo-vendor when building from (Debian's) git
authorMatthijs van Otterdijk <matthijs@wirevirt.net>
Tue, 1 Dec 2020 19:57:48 +0000 (19:57 +0000)
committerXimin Luo <infinity0@debian.org>
Tue, 1 Dec 2020 19:57:48 +0000 (19:57 +0000)
Forwarded: not-needed

Forwarded: not-needed
Gbp-Pq: Name d-disable-cargo-vendor.patch

src/bootstrap/dist.rs

index d570180e9554a3b93786a01bd32934b857cc7456..58f76763d53e2cc139a5da59726a8de528fb1921 100644 (file)
@@ -1109,7 +1109,10 @@ impl Step for PlainSourceTarball {
         }
 
         // If we're building from git sources, we need to vendor a complete distribution.
-        if builder.rust_info.is_git() {
+        //
+        // Debian: disabling this block because the debian package is also in a git
+        //         repository, but cargo-vendor should not be installed or run.
+        if false && builder.rust_info.is_git() {
             // Vendor all Cargo dependencies
             let mut cmd = Command::new(&builder.initial_cargo);
             cmd.arg("vendor")