From 5c52a7695c26a96cd8d2a54e0756730c207b3240 Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Sun, 24 Jul 2022 07:37:10 -0400 Subject: [PATCH] ui_test: build dependencies in locked mode unless bless is enabled --- ui_test/src/dependencies.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ui_test/src/dependencies.rs b/ui_test/src/dependencies.rs index 8ec7090b96a..582641b97ae 100644 --- a/ui_test/src/dependencies.rs +++ b/ui_test/src/dependencies.rs @@ -5,7 +5,7 @@ process::Command, }; -use crate::Config; +use crate::{Config, OutputConflictHandling}; #[derive(Default, Debug)] pub struct Dependencies { @@ -40,6 +40,9 @@ pub fn build_dependencies(config: &Config) -> Result { let setup_command = |cmd: &mut Command| { cmd.envs(envs.iter().map(|(k, v)| (k, v))); cmd.arg("--manifest-path").arg(manifest_path); + if matches!(config.output_conflict_handling, OutputConflictHandling::Error) { + cmd.arg("--locked"); + } }; setup_command(&mut build);