does this fix the cron exit status 1?
This commit is contained in:
parent
52bb1eb33c
commit
315b4e3f7a
@ -34,7 +34,8 @@ func (r *Runner) Run() error {
|
|||||||
return fmt.Errorf("error getting current go version: %s", e)
|
return fmt.Errorf("error getting current go version: %s", e)
|
||||||
}
|
}
|
||||||
for _, m := range ms {
|
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 {
|
if e != nil {
|
||||||
return fmt.Errorf("error getting version of file: %s", e)
|
return fmt.Errorf("error getting version of file: %s", e)
|
||||||
}
|
}
|
||||||
@ -89,7 +90,7 @@ func getCurrentGoVersion() (string, error) {
|
|||||||
return version, nil
|
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) {
|
func getVersionOfFile(file string) (string, error) {
|
||||||
cmd := exec.Command("go", "version", file)
|
cmd := exec.Command("go", "version", file)
|
||||||
var out strings.Builder
|
var out strings.Builder
|
||||||
|
Loading…
Reference in New Issue
Block a user