Skip to content

Commit e1de78e

Browse files
fix: ensure vendor.tar.<compression> is created even if no dependencies
This should contain the missing lockfiles that caused a bug where "lockfile needs to be updated error" Signed-off-by: Soc Virnyl Estela <contact@uncomfyhalomacro.pl>
1 parent 856bc29 commit e1de78e

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

cargo/src/cargo_commands.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,12 @@ pub fn cargo_vendor(
272272

273273
if !global_has_deps {
274274
info!("🎉 Nothing to vendor.");
275-
return Ok(None);
275+
return Ok(Some((
276+
possible_lockfile
277+
.canonicalize()
278+
.unwrap_or(possible_lockfile),
279+
output_cargo_configuration,
280+
)));
276281
}
277282

278283
match res {

0 commit comments

Comments
 (0)