mirror of
				https://github.com/beego/bee.git
				synced 2025-10-31 02:13:23 +00:00 
			
		
		
		
	fix: fix build faild with code check!
This commit is contained in:
		| @@ -228,7 +228,7 @@ func startWatcher(paths []string, ch chan int) { | ||||
|  | ||||
| 					// Wait 1s before re-build until there is no file change | ||||
| 					scheduleTime := time.Now().Add(1 * time.Second) | ||||
| 					time.Sleep(scheduleTime.Sub(time.Now())) | ||||
| 					time.Sleep(time.Until(scheduleTime)) | ||||
| 					_, err := buildDebug() | ||||
| 					if err != nil { | ||||
| 						utils.Notify("Build Failed: "+err.Error(), "bee") | ||||
|   | ||||
| @@ -511,7 +511,7 @@ func packApp(cmd *commands.Command, args []string) int { | ||||
| 			fmt.Fprintf(output, "\t%s%s+ go %s%s%s\n", "\x1b[32m", "\x1b[1m", strings.Join(args, " "), "\x1b[21m", "\x1b[0m") | ||||
| 		} | ||||
|  | ||||
| 		execmd := exec.Command(string(cmdName), args...) | ||||
| 		execmd := exec.Command(cmdName, args...) | ||||
| 		execmd.Env = append(os.Environ(), envs...) | ||||
| 		execmd.Stdout = os.Stdout | ||||
| 		execmd.Stderr = os.Stderr | ||||
|   | ||||
| @@ -85,7 +85,7 @@ func NewWatcher(paths []string, files []string, isgenerate bool) { | ||||
| 					go func() { | ||||
| 						// Wait 1s before autobuild until there is no file change. | ||||
| 						scheduleTime = time.Now().Add(1 * time.Second) | ||||
| 						time.Sleep(scheduleTime.Sub(time.Now())) | ||||
| 						time.Sleep(time.Until(scheduleTime)) | ||||
| 						AutoBuild(files, isgenerate) | ||||
|  | ||||
| 						if config.Conf.EnableReload { | ||||
|   | ||||
| @@ -116,7 +116,7 @@ func ParsePackagesFromDir(dirpath string) { | ||||
| 				err = parsePackageFromDir(fpath) | ||||
| 				if err != nil { | ||||
| 					// Send the error to through the channel and continue walking | ||||
| 					c <- fmt.Errorf("Error while parsing directory: %s", err.Error()) | ||||
| 					c <- fmt.Errorf("error while parsing directory: %s", err.Error()) | ||||
| 					return nil | ||||
| 				} | ||||
| 			} | ||||
|   | ||||
| @@ -328,7 +328,7 @@ func CheckEnv(appname string) (apppath, packpath string, err error) { | ||||
| 	apppath = filepath.Join(gosrcpath, appname) | ||||
|  | ||||
| 	if _, e := os.Stat(apppath); !os.IsNotExist(e) { | ||||
| 		err = fmt.Errorf("Cannot create application without removing '%s' first", apppath) | ||||
| 		err = fmt.Errorf("cannot create application without removing '%s' first", apppath) | ||||
| 		beeLogger.Log.Errorf("Path '%s' already exists", apppath) | ||||
| 		return | ||||
| 	} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 qiantao
					qiantao