Skip to content

Commit

Permalink
fix: mage bootstrap command (#1281)
Browse files Browse the repository at this point in the history
  • Loading branch information
markphelps authored Jan 20, 2023
1 parent f6d5e53 commit c056507
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions magefile.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,20 @@ func Bootstrap() error {
cmd := exec.Command("go", "mod", "init", "tools")
cmd.Dir = "_tools"
cmd.Stdout = os.Stdout
cmd.Stderr = os.Stderr
if err := cmd.Run(); err != nil {
return err
}
}

goInstall := sh.RunCmd("go", "install", "-v")
return goInstall(tools...)
install := []string{"install", "-v"}
install = append(install, tools...)

cmd := exec.Command("go", install...)
cmd.Dir = "_tools"
cmd.Stdout = os.Stdout
cmd.Stderr = os.Stderr
return cmd.Run()
}

// Build builds the project similar to a release build
Expand Down

0 comments on commit c056507

Please sign in to comment.