Don't check for cargo-vendor when building from (Debian's) git
authorMatthijs van Otterdijk <matthijs@wirevirt.net>
Sat, 28 Aug 2021 09:48:11 +0000 (10:48 +0100)
committerXimin Luo <infinity0@debian.org>
Sat, 28 Aug 2021 09:48:11 +0000 (10:48 +0100)
Forwarded: not-needed

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

src/bootstrap/dist.rs

index f3183f9088e14af933be8e60d19a983900364e37..8460a2c1daa550c129db1f09e85c09bfeaa561e7 100644 (file)
@@ -1121,7 +1121,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")