Skip to content

Commit

Permalink
gofmt: use Go version (#435)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevgo authored Feb 17, 2025
1 parent 387bd97 commit 3c47011
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/applications/gofmt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,10 @@ impl AppDefinition for Gofmt {
if !output.contains("report all errors (not just the first 10 on different lines)") {
return Ok(AnalyzeResult::NotIdentified { output });
}
// TODO: return the version of Go here
Ok(AnalyzeResult::IdentifiedButUnknownVersion)
let go = Go {};
#[allow(clippy::unwrap_used)]
let go_path = executable.as_path().parent().unwrap().join(go.executable_filename().as_ref());
go.analyze_executable(&ExecutablePath::from(go_path), log)
}

fn clone(&self) -> Box<dyn AppDefinition> {
Expand Down

0 comments on commit 3c47011

Please sign in to comment.