From 5f52abf16558c571ded2fcd442234c4ad5a97d71 Mon Sep 17 00:00:00 2001 From: Soc Virnyl Estela Date: Tue, 31 Oct 2023 21:00:12 +0800 Subject: [PATCH] fix: also make sure it really has no deps Signed-off-by: Soc Virnyl Estela --- cargo/src/utils/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cargo/src/utils/mod.rs b/cargo/src/utils/mod.rs index d13a2f7..8e58807 100644 --- a/cargo/src/utils/mod.rs +++ b/cargo/src/utils/mod.rs @@ -166,7 +166,7 @@ pub fn process_src(args: &Opts, prjdir: &Path) -> io::Result<()> { vendor_dir.as_ref(), ]; - if vendor_dir.exists() { + if vendor_dir.exists() && vendor::has_dependencies(&first_manifest)? { vendor::compress(outdir, prjdir, &paths_to_archive, compression)?; } else { info!("😌 No dependencies, no need to vendor!");