install kemoforge when creating project
This commit is contained in:
parent
0ca987ca2e
commit
520332e21d
|
@ -463,15 +463,15 @@ func (p KFProject) Create(window fyne.Window) error {
|
|||
}
|
||||
|
||||
loading.SetProgress(95, "Installing KemoForge")
|
||||
// cmd = exec.Command("go", "get", "g.r-io.lu/shynd/kemoforge@latest")
|
||||
// cmd.Stderr = &stderr
|
||||
// cmd.Dir = projectDir
|
||||
// err = cmd.Run()
|
||||
// if err != nil {
|
||||
// log.Printf("Error installing KemoForge: %v", err)
|
||||
// log.Printf("Stderr: %s", stderr.String())
|
||||
// return errors.New("error installing KemoForge")
|
||||
// }
|
||||
cmd = exec.Command("go", "get", "g.r-io.lu/shynd/kemoforge@latest")
|
||||
cmd.Stderr = &stderr
|
||||
cmd.Dir = projectDir
|
||||
err = cmd.Run()
|
||||
if err != nil {
|
||||
log.Printf("Error installing KemoForge: %v", err)
|
||||
log.Printf("Stderr: %s", stderr.String())
|
||||
return errors.New("error installing KemoForge")
|
||||
}
|
||||
|
||||
//Run go mod tidy
|
||||
loading.SetProgress(97, "Running go mod tidy")
|
||||
|
@ -483,7 +483,6 @@ func (p KFProject) Create(window fyne.Window) error {
|
|||
log.Printf("Error running go mod tidy: %v", err)
|
||||
log.Printf("Stderr: %s", stderr.String())
|
||||
return errors.New("error running go mod tidy")
|
||||
|
||||
}
|
||||
|
||||
loading.SetProgress(100, "Project Created")
|
||||
|
|
Loading…
Reference in New Issue