Skip to content

Commit

Permalink
Fix typo in method name: "depedency" => "dependency" (#2738)
Browse files Browse the repository at this point in the history
  • Loading branch information
autarch authored Oct 12, 2024
1 parent bad9f68 commit 5da91c6
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/backend/cargo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(())
Expand Down
4 changes: 2 additions & 2 deletions src/backend/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ pub trait Backend: Debug + Send + Sync {
tv.cache_path().join("incomplete")
}

fn depedency_toolset(&self) -> eyre::Result<Toolset> {
fn dependency_toolset(&self) -> eyre::Result<Toolset> {
let config = Config::get();
let dependencies = self
.get_all_dependencies(&ToolRequest::System(self.name().into()))?
Expand All @@ -518,7 +518,7 @@ pub trait Backend: Debug + Send + Sync {
}

fn dependency_env(&self) -> eyre::Result<BTreeMap<String, String>> {
self.depedency_toolset()?.full_env()
self.dependency_toolset()?.full_env()
}

fn fuzzy_match_filter(&self, versions: Vec<String>, query: &str) -> eyre::Result<Vec<String>> {
Expand Down
2 changes: 1 addition & 1 deletion src/backend/npm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(())
Expand Down
4 changes: 2 additions & 2 deletions src/backend/pipx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -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(())
Expand Down
2 changes: 1 addition & 1 deletion src/backend/ubi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 5da91c6

Please sign in to comment.