mirror of
https://github.com/beego/bee.git
synced 2025-06-19 06:50:38 +00:00
Fixed bug: repeat build in Mac OS, change to check file ModTime insetad of event time
This commit is contained in:
1
watch.go
1
watch.go
@ -74,6 +74,7 @@ func getFileModTime(path string) int64 {
|
||||
colorLog("[ERRO] Fail to open file[ %s ]", err)
|
||||
return time.Now().Unix()
|
||||
}
|
||||
defer f.Close()
|
||||
|
||||
fi, err := f.Stat()
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user