fix(plugins): do not open extra instances of aliases (#3759)

This commit is contained in:
Aram Drevekenin 2024-11-11 17:44:38 +01:00 committed by GitHub
parent 3eb2ae959a
commit dbe38401e5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -186,7 +186,11 @@ impl RunPluginOrAlias {
// configuration (i.e. None) // configuration (i.e. None)
.and_then(|c| if c.inner().is_empty() { None } else { Some(c) }) .and_then(|c| if c.inner().is_empty() { None } else { Some(c) })
== run_alias.configuration.as_ref().and_then(|c| { == run_alias.configuration.as_ref().and_then(|c| {
if c.inner().is_empty() { let mut to_compare = c.inner().clone();
// caller_cwd is a special attribute given to alias and should not be
// considered when weighing configuration equivalency
to_compare.remove("caller_cwd");
if to_compare.is_empty() {
None None
} else { } else {
Some(c) Some(c)