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

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

src/bootstrap/dist.rs

index 7dd4684ff1ee1bcc7d8776683eb04736877773c8..df5522e2c94a6fd9dd9d02bbf163a98588ba5e4d 100644 (file)
@@ -896,7 +896,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")