Skip to content

Commit fa45801

Browse files
committed
fix(cli): used tag_name rather than name to get tool versions
Fixes #329.
1 parent cf5ad2a commit fa45801

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/perseus-cli/src/install.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,7 @@ impl Tool {
486486
tool: self.name.to_string(),
487487
})?;
488488
let latest_version =
489-
json.get("name")
489+
json.get("tag_name")
490490
.ok_or_else(|| InstallError::ParseToolVersionFailed {
491491
tool: self.name.to_string(),
492492
})?;

0 commit comments

Comments
 (0)