1
0
mirror of https://github.com/beego/bee.git synced 2024-11-25 15:00:55 +00:00

Bug fixed

This commit is contained in:
Unknown 2013-12-12 17:13:50 -05:00
parent 3114e61537
commit 49c53400ea
2 changed files with 3 additions and 5 deletions

View File

@ -40,7 +40,8 @@ var conf struct {
Version int
// gopm support
Gopm struct {
Enable bool
Enable bool
Install bool
}
// Indicates whether execute "go install" before "go build".
GoInstall bool `json:"go_install"`

View File

@ -125,7 +125,7 @@ func Autobuild() {
var err error
// For applications use full import path like "github.com/.../.."
// are able to use "go install" to reduce build time.
if conf.GoInstall {
if conf.GoInstall || conf.Gopm.Install {
icmd := exec.Command(cmdName, "install")
icmd.Stdout = os.Stdout
icmd.Stderr = os.Stderr
@ -152,9 +152,6 @@ func Autobuild() {
if err != nil {
ColorLog("[ERRO] ============== Build failed ===================\n")
fmt.Print("Press 'enter' to rebuild...")
fmt.Scanln()
go Autobuild()
return
}
ColorLog("[SUCC] Build was successful\n")