From 99328073c8c62058c1d7d37ad06b1571d23fb88e Mon Sep 17 00:00:00 2001 From: Andreas Hartmann Date: Fri, 29 Dec 2023 07:06:46 +0100 Subject: [PATCH] xtask/pipe: Require lockfile in publish to avoid errors from invalid dependency versions. --- xtask/src/pipelines.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xtask/src/pipelines.rs b/xtask/src/pipelines.rs index a905a0a9dd..437cefbf25 100644 --- a/xtask/src/pipelines.rs +++ b/xtask/src/pipelines.rs @@ -337,7 +337,7 @@ pub fn publish(sh: &Shell, flags: flags::Publish) -> anyhow::Result<()> { if let Err(err) = cmd!( sh, - "{cargo} publish {registry...} {more_args...} {dry_run...}" + "{cargo} publish --locked {registry...} {more_args...} {dry_run...}" ) .run() .context(err_context)