From bfea5fb5e6d32eafcf90a1ad2613b7d74b44bfa6 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)