diff --git a/runner/runner.go b/runner/runner.go index 518f2a0..bada4df 100644 --- a/runner/runner.go +++ b/runner/runner.go @@ -34,7 +34,8 @@ func (r *Runner) Run() error { return fmt.Errorf("error getting current go version: %s", e) } for _, m := range ms { - fv, e := getVersionOfFile(fmt.Sprintf("%s/%s", m.RootPath, m.BinaryPath)) + fmt.Println(fmt.Sprintf("%s%s", m.RootPath, m.BinaryPath)) + fv, e := getVersionOfFile(fmt.Sprintf("%s%s", m.RootPath, m.BinaryPath)) if e != nil { return fmt.Errorf("error getting version of file: %s", e) } @@ -89,7 +90,7 @@ func getCurrentGoVersion() (string, error) { return version, nil } -// getVersionOfFile returns the version of a go binary or an non-nil error +// getVersionOfFile returns the version of a go binary or a non-nil error func getVersionOfFile(file string) (string, error) { cmd := exec.Command("go", "version", file) var out strings.Builder