Repository navigation
Commit 19414cf
committed
[tool] Improve global filesystem and symlink robustness on Windows, macOS, and Linux
Wrap missing async and read methods inside ErrorHandlingFileSystem to catch and throw clean ToolExit.
Map POSIX enoent (2), Windows kFileNotFound (2) and kPathNotFound (3) to ToolExit suggesting flutter clean.
Implement exponential backoff retry loop for Windows transient locks (5, 32, 33, 1224).
Make deleteIfExists type-agnostic and robust to broken symlinks.
Fixes flutter#186959
TAG=agy
CONV=c78f1569-c7a1-480f-b5a9-5ef1150b0e801 parent 018e5a0 commit 19414cf
2 files changed
Lines changed: 778 additions & 66 deletions
File tree
- packages/flutter_tools
- lib/src/base
- test/general.shard/base
0 commit comments