From 5da91c63d954ca4dbe300d23d9fa2d2a7fd25db4 Mon Sep 17 00:00:00 2001 From: Dave Rolsky Date: Sat, 12 Oct 2024 16:45:51 -0500 Subject: [PATCH] Fix typo in method name: "depedency" => "dependency" (#2738) --- src/backend/cargo.rs | 2 +- src/backend/mod.rs | 4 ++-- src/backend/npm.rs | 2 +- src/backend/pipx.rs | 4 ++-- src/backend/ubi.rs | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/backend/cargo.rs b/src/backend/cargo.rs index 64b7ae932..64effb807 100644 --- a/src/backend/cargo.rs +++ b/src/backend/cargo.rs @@ -104,7 +104,7 @@ impl Backend for CargoBackend { .with_pr(ctx.pr.as_ref()) .envs(ctx.ts.env_with_path(&config)?) .prepend_path(ctx.ts.list_paths())? - .prepend_path(self.depedency_toolset()?.list_paths())? + .prepend_path(self.dependency_toolset()?.list_paths())? .execute()?; Ok(()) diff --git a/src/backend/mod.rs b/src/backend/mod.rs index cf1dd71a1..bfabd0973 100644 --- a/src/backend/mod.rs +++ b/src/backend/mod.rs @@ -503,7 +503,7 @@ pub trait Backend: Debug + Send + Sync { tv.cache_path().join("incomplete") } - fn depedency_toolset(&self) -> eyre::Result { + fn dependency_toolset(&self) -> eyre::Result { let config = Config::get(); let dependencies = self .get_all_dependencies(&ToolRequest::System(self.name().into()))? @@ -518,7 +518,7 @@ pub trait Backend: Debug + Send + Sync { } fn dependency_env(&self) -> eyre::Result> { - self.depedency_toolset()?.full_env() + self.dependency_toolset()?.full_env() } fn fuzzy_match_filter(&self, versions: Vec, query: &str) -> eyre::Result> { diff --git a/src/backend/npm.rs b/src/backend/npm.rs index 415594e7a..63d626bae 100644 --- a/src/backend/npm.rs +++ b/src/backend/npm.rs @@ -70,7 +70,7 @@ impl Backend for NPMBackend { .with_pr(ctx.pr.as_ref()) .envs(ctx.ts.env_with_path(&config)?) .prepend_path(ctx.ts.list_paths())? - .prepend_path(self.depedency_toolset()?.list_paths())? + .prepend_path(self.dependency_toolset()?.list_paths())? .execute()?; Ok(()) diff --git a/src/backend/pipx.rs b/src/backend/pipx.rs index e7215f309..18bcdc10e 100644 --- a/src/backend/pipx.rs +++ b/src/backend/pipx.rs @@ -97,7 +97,7 @@ impl Backend for PIPXBackend { .prepend_path(ctx.ts.list_paths())? // Prepend install path so pipx doesn't issue a warning about missing path .prepend_path(vec![ctx.tv.install_path().join("bin")])? - .prepend_path(self.depedency_toolset()?.list_paths())? + .prepend_path(self.dependency_toolset()?.list_paths())? .execute()?; } else { CmdLineRunner::new("pipx") @@ -110,7 +110,7 @@ impl Backend for PIPXBackend { .prepend_path(ctx.ts.list_paths())? // Prepend install path so pipx doesn't issue a warning about missing path .prepend_path(vec![ctx.tv.install_path().join("bin")])? - .prepend_path(self.depedency_toolset()?.list_paths())? + .prepend_path(self.dependency_toolset()?.list_paths())? .execute()?; } Ok(()) diff --git a/src/backend/ubi.rs b/src/backend/ubi.rs index 61e3dbda8..3d3e108d2 100644 --- a/src/backend/ubi.rs +++ b/src/backend/ubi.rs @@ -65,7 +65,7 @@ impl Backend for UbiBackend { .with_pr(ctx.pr.as_ref()) .envs(ctx.ts.env_with_path(&config)?) .prepend_path(ctx.ts.list_paths())? - .prepend_path(self.depedency_toolset()?.list_paths())?; + .prepend_path(self.dependency_toolset()?.list_paths())?; if let Some(token) = &*GITHUB_TOKEN { cmd = cmd.env("GITHUB_TOKEN", token);