Commit ff08962
authored
fix(build): preserve flutter-packages on --skip-site-packages incremental builds (#6634)
register_flutter_extensions() unconditionally wiped the permanent
build/flutter-packages directory before repopulating it only when the
temp dir exists. On incremental builds the package hash is unchanged, so
serious_python is invoked with --skip-site-packages and does not copy
Flutter packages to the temp dir. The absent temp dir then meant the
wiped extensions were never restored, breaking 'flutter build web'
(unresolved web plugins such as audioplayers_web, camera_web, etc.).
Track when the package step ran with --skip-site-packages and skip the
wipe/move in that case, keeping the previous build's extension copy. A
removed extension changes the package requirements, flips the hash, and
takes the full (non-skip) path that still clears stale extensions.
Regression from #6608.1 parent d1e8c03 commit ff08962
1 file changed
Lines changed: 20 additions & 5 deletions
Lines changed: 20 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
| 92 | + | |
92 | 93 | | |
93 | 94 | | |
94 | 95 | | |
| |||
1637 | 1638 | | |
1638 | 1639 | | |
1639 | 1640 | | |
1640 | | - | |
1641 | | - | |
1642 | | - | |
1643 | | - | |
1644 | | - | |
| 1641 | + | |
| 1642 | + | |
| 1643 | + | |
| 1644 | + | |
| 1645 | + | |
| 1646 | + | |
| 1647 | + | |
| 1648 | + | |
| 1649 | + | |
| 1650 | + | |
| 1651 | + | |
| 1652 | + | |
| 1653 | + | |
| 1654 | + | |
1645 | 1655 | | |
1646 | 1656 | | |
1647 | 1657 | | |
| |||
2380 | 2390 | | |
2381 | 2391 | | |
2382 | 2392 | | |
| 2393 | + | |
| 2394 | + | |
| 2395 | + | |
| 2396 | + | |
| 2397 | + | |
2383 | 2398 | | |
2384 | 2399 | | |
2385 | 2400 | | |
| |||
0 commit comments