From ec0a0777276369bf590bd98ba7a9132b272e9d55 Mon Sep 17 00:00:00 2001 From: Paolo Barbolini Date: Sun, 7 Apr 2024 10:14:47 +0200 Subject: [PATCH] fix: work around `cargo package` bug Works around https://github.com/rust-lang/cargo/issues/13719 --- src/git.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/git.rs b/src/git.rs index 57d2e45..5546f2c 100644 --- a/src/git.rs +++ b/src/git.rs @@ -130,7 +130,8 @@ impl<'a> GitRepositoryCheckout<'a> { if !package_path.try_exists()? { let out = Command::new("cargo") - .arg("package") + .arg("publish") + .arg("--dry-run") .arg("--no-verify") .arg("--package") .arg(name)