Skip to content

Commit

Permalink
plugin: skip eager loading of plugin data when installing
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Dec 12, 2023
1 parent ab3acf5 commit 373f1bc
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions src/plugins/external_plugin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,19 +117,6 @@ impl ExternalPlugin {
git.update(Some(ref_.to_string()))?;
}

pr.set_message("loading plugin remote versions");
if self.has_list_all_script() {
self.list_remote_versions(&config.settings)?;
}
if self.has_list_alias_script() {
pr.set_message("getting plugin aliases");
self.get_aliases(&config.settings)?;
}
if self.has_list_legacy_filenames_script() {
pr.set_message("getting plugin legacy filenames");
self.legacy_filenames(&config.settings)?;
}

let sha = git.current_sha_short()?;
pr.finish_with_message(format!(
"{repo_url}#{}",
Expand Down Expand Up @@ -231,9 +218,6 @@ impl ExternalPlugin {
})
}

fn has_list_all_script(&self) -> bool {
self.script_man.script_exists(&Script::ListAll)
}
fn has_list_alias_script(&self) -> bool {
self.script_man.script_exists(&Script::ListAliases)
}
Expand Down

0 comments on commit 373f1bc

Please sign in to comment.