Lock flutter tool while updating artifacts (#4476)

This prevents multiple simultaneous runs of the analyzer from stomping
over each other (e.g. multiple runs of 'update-packages'). Certain
long-lived commands (like analyze, run, logs) are exempted once they've
done enough work to be safe from most stomping action.

This still doesn't make us entirely safe from craziness, e.g. if you're
half way through an 'update-packages' run and you call 'git pull', who
knows what state you'll end up in. But there's only so much one can do.

Fixes https://github.com/flutter/flutter/issues/2762
This commit is contained in:
Ian Hickson
2016-06-14 10:16:08 -07:00
committed by GitHub
parent d8c52527cc
commit f92f71feb9
20 changed files with 127 additions and 23 deletions

View File

@@ -3,3 +3,4 @@
artifacts/
dart-sdk/
pkg/
lockfile