Skip to content

Commit 77cc49a

Browse files
authored
fix(cli): Clone Options struct after mutating it. (#9188)
1 parent e3b6d38 commit 77cc49a

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.changes/runner-config.md

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'tauri-cli': 'patch:bug'
3+
'@tauri-apps/cli': 'patch:bug'
4+
---
5+
6+
Fixed an issue causing the `build.runner` and `build.features` configs to not take effect.

tooling/cli/src/build.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,6 @@ pub fn command(mut options: Options, verbosity: u8) -> Result<()> {
119119

120120
let mut interface = AppInterface::new(config_, options.target.clone())?;
121121
let app_settings = interface.app_settings();
122-
let interface_options = options.clone().into();
123122

124123
if let Some(before_build) = config_.build.before_build_command.clone() {
125124
run_hook(
@@ -169,6 +168,7 @@ pub fn command(mut options: Options, verbosity: u8) -> Result<()> {
169168
.get_or_insert(Vec::new())
170169
.extend(config_.build.features.clone().unwrap_or_default());
171170

171+
let interface_options = options.clone().into();
172172
let bin_path = app_settings.app_binary_path(&interface_options)?;
173173
let out_dir = bin_path.parent().unwrap();
174174

0 commit comments

Comments
 (0)