Skip to content

Commit

Permalink
fix(cli): used tag_name rather than name to get tool versions
Browse files Browse the repository at this point in the history
Fixes #329.
  • Loading branch information
arctic-hen7 committed Jul 19, 2024
1 parent cf5ad2a commit fa45801
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/perseus-cli/src/install.rs
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ impl Tool {
tool: self.name.to_string(),
})?;
let latest_version =
json.get("name")
json.get("tag_name")
.ok_or_else(|| InstallError::ParseToolVersionFailed {
tool: self.name.to_string(),
})?;
Expand Down

0 comments on commit fa45801

Please sign in to comment.