Skip to content

Commit 7ec1b3c

Browse files
authored
Merge pull request #185 from vishal-wadhwa/patch-1
Fix no re-build issue when exclude_unchanged is true
2 parents 9e14bf4 + 147021b commit 7ec1b3c

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

runner/engine.go

+5-2
Original file line numberDiff line numberDiff line change
@@ -309,8 +309,6 @@ func (e *Engine) start() {
309309
case <-e.exitCh:
310310
return
311311
case filename = <-e.eventCh:
312-
time.Sleep(e.config.buildDelay())
313-
e.flushEvents()
314312
if !e.isIncludeExt(filename) {
315313
continue
316314
}
@@ -320,10 +318,15 @@ func (e *Engine) start() {
320318
continue
321319
}
322320
}
321+
322+
time.Sleep(e.config.buildDelay())
323+
e.flushEvents()
324+
323325
// clean on rebuild https://stackoverflow.com/questions/22891644/how-can-i-clear-the-terminal-screen-in-go
324326
if e.config.Screen.ClearOnRebuild {
325327
fmt.Println("\033[2J")
326328
}
329+
327330
e.mainLog("%s has changed", e.config.rel(filename))
328331
case <-firstRunCh:
329332
// go down

0 commit comments

Comments
 (0)