mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-23 00:58:32 +02:00
cli: only use cwd plugins in debug builds
This commit is contained in:
@@ -136,6 +136,10 @@ fn prepare_embedded_vendored_plugins(vendored_plugin_dir: &Path) -> std::io::Res
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn resolve_bundled_plugin_dir_for_cli(embedded_vendored_plugin_dir: &Path) -> PathBuf {
|
fn resolve_bundled_plugin_dir_for_cli(embedded_vendored_plugin_dir: &Path) -> PathBuf {
|
||||||
|
if !cfg!(debug_assertions) {
|
||||||
|
return embedded_vendored_plugin_dir.to_path_buf();
|
||||||
|
}
|
||||||
|
|
||||||
resolve_workspace_plugins_dir_from_cwd()
|
resolve_workspace_plugins_dir_from_cwd()
|
||||||
.unwrap_or_else(|| embedded_vendored_plugin_dir.to_path_buf())
|
.unwrap_or_else(|| embedded_vendored_plugin_dir.to_path_buf())
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user