From 3b4786b6f2dea83c609bb7efc0d3d933c3e710e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Do=C4=9Fan=20Can=20Bak=C4=B1r?= Date: Sat, 3 Jan 2026 17:35:34 +0300 Subject: [PATCH] fix installation logging --- internal/runner/runner.go | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/internal/runner/runner.go b/internal/runner/runner.go index 72ddb7c..dcd7408 100644 --- a/internal/runner/runner.go +++ b/internal/runner/runner.go @@ -114,7 +114,11 @@ func (r *Runner) Run() error { tool := toolList[i] if tool.InstallType == types.Go && isGoInstalled() { if err := pkg.GoInstall(r.options.Path, tool); err != nil { - gologger.Error().Msgf("%s: %s", tool.Name, err) + if errors.Is(err, types.ErrIsInstalled) { + gologger.Info().Msgf("%s: %s", tool.Name, err) + } else { + gologger.Error().Msgf("%s: %s", tool.Name, err) + } } continue } @@ -126,7 +130,11 @@ func (r *Runner) Run() error { gologger.Error().Msgf("error while installing %s: %s", tool.Name, err) gologger.Info().Msgf("trying to install %s using go install", tool.Name) if err := pkg.GoInstall(r.options.Path, tool); err != nil { - gologger.Error().Msgf("%s: %s", tool.Name, err) + if errors.Is(err, types.ErrIsInstalled) { + gologger.Info().Msgf("%s: %s", tool.Name, err) + } else { + gologger.Error().Msgf("%s: %s", tool.Name, err) + } } } }