Skip to content

Commit

Permalink
Not a go executable is not an error we should show
Browse files Browse the repository at this point in the history
  • Loading branch information
simonswine committed Feb 9, 2024
1 parent 7425fd7 commit 6ae61a3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions component/discovery/process/analyze/go.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ func analyzeGo(input Input, a *Results) error {
m := a.Labels
info, err := buildinfo.Read(input.File) // it reads elf second time
if err != nil {
if err.Error() == "not a Go executable" {
return nil
}
return err
}

Expand Down

0 comments on commit 6ae61a3

Please sign in to comment.