You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make some file changes e.g. add space and save the file
Execute the previous step very fast a lot of times e.g. 30 times
Notice that modd executes the build 30 times
Tested with modd v0.8 on golang:1.14.2 Docker container.
I would prefer if modd would execute prep commands only once if there were many file changes during previous commands execution.
I think you can add a state machine to modd. E.g.
State "idle - waiting for file changes" - it watches for file changes. If a file is changed then you go to the next state.
State "executing prep - waiting for file changes" - start executing the prep. When the prep has finished then go to state 1. If a file changed during prep execution go to next state.
State "executing prep - next prep execution queued". When the prep finishes, then just go to the previous step (rerun the prep and wait for new file changes).
Disclaimer, I had not time to look at modd source code.
Easy repro steps:
modd
foo.go
orfoo_test.go
Tested with modd v0.8 on golang:1.14.2 Docker container.
I would prefer if modd would execute prep commands only once if there were many file changes during previous commands execution.
I think you can add a state machine to
modd
. E.g.Disclaimer, I had not time to look at modd source code.
Described also under #55
The text was updated successfully, but these errors were encountered: