diff --git a/crates/cli/src/commands/run.rs b/crates/cli/src/commands/run.rs index 85184e212..cb3b934ba 100644 --- a/crates/cli/src/commands/run.rs +++ b/crates/cli/src/commands/run.rs @@ -199,8 +199,9 @@ pub async fn run(args: ArgsRef) -> SystemResult { // Determine the binary path to execute let exe_config = get_executable(&tool, args)?; + let exe_path = exe_config.exe_path.as_ref().unwrap(); - debug!(bin = ?exe_config.exe_path, args = ?args.passthrough, "Running {}", tool.get_name()); + debug!(bin = ?exe_path, args = ?args.passthrough, "Running {}", tool.get_name()); // Run before hook tool.run_hook("pre_run", || RunHook { @@ -216,7 +217,7 @@ pub async fn run(args: ArgsRef) -> SystemResult { ) .env( format!("{}_BIN", tool.get_env_var_prefix()), - exe_config.exe_path.unwrap().to_string_lossy().to_string(), + exe_path.to_string_lossy().to_string(), ) .spawn() .into_diagnostic()? diff --git a/crates/core/src/version_detector.rs b/crates/core/src/version_detector.rs index 4ca8f5c7b..db493cbc7 100644 --- a/crates/core/src/version_detector.rs +++ b/crates/core/src/version_detector.rs @@ -60,7 +60,7 @@ pub async fn detect_version( if let Some(local_version) = config.tools.get(&tool.id) { debug!( tool = tool.id.as_str(), - version = ?local_version, + version = local_version.to_string(), file = ?config.path, "Detected version from .prototools file", ); diff --git a/crates/pdk-api/src/api.rs b/crates/pdk-api/src/api.rs index 2e39217d4..d378550b9 100644 --- a/crates/pdk-api/src/api.rs +++ b/crates/pdk-api/src/api.rs @@ -366,6 +366,7 @@ json_struct!( pub no_shim: bool, /// The parent executable name required to execute the local executable path. + #[serde(skip_serializing_if = "Option::is_none")] pub parent_exe_name: Option, /// Custom args to prepend to user-provided args within the generated shim.