Don't check for cargo-vendor when building from (Debian's) git
authorMatthijs van Otterdijk <matthijs@wirevirt.net>
Sun, 5 Jul 2020 14:06:52 +0000 (15:06 +0100)
committerXimin Luo <infinity0@debian.org>
Sun, 5 Jul 2020 14:06:52 +0000 (15:06 +0100)
Forwarded: not-needed

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

src/bootstrap/dist.rs

index 8215211ea1c9d7fb9683b631198d27826989e819..3604adebca83163d071a189a7f5c9f8c893130f0 100644 (file)
@@ -1090,7 +1090,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").current_dir(&plain_dst_src);