Skip to content

Commit

Permalink
fix: also make sure it really has no deps
Browse files Browse the repository at this point in the history
Signed-off-by: Soc Virnyl Estela <[email protected]>
  • Loading branch information
uncomfyhalomacro committed Oct 31, 2023
1 parent 8f4decd commit 5f52abf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cargo/src/utils/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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!");
Expand Down

0 comments on commit 5f52abf

Please sign in to comment.