Reland: implement build bundle with assemble#40470
Reland: implement build bundle with assemble#40470jonahwilliams merged 42 commits intoflutter:masterfrom
Conversation
…to bundle_assemble
…to bundle_assemble
Codecov Report
@@ Coverage Diff @@
## master #40470 +/- ##
==========================================
- Coverage 59.75% 59.29% -0.47%
==========================================
Files 193 193
Lines 18705 18795 +90
==========================================
- Hits 11177 11144 -33
- Misses 7528 7651 +123
Continue to review full report at Codecov.
|
jmagman
left a comment
There was a problem hiding this comment.
Last 3 commits since the master merge LGTM
| final PoolResource resource = await pool.request(); | ||
| try { | ||
| final File file = fs.file(fs.path.join(environment.outputDir.path, entry.key)); | ||
| file.parent.createSync(recursive: true); |
There was a problem hiding this comment.
What happens when one of these file operations fails?
There was a problem hiding this comment.
We should throw, will update
There was a problem hiding this comment.
actually, we're already propagating the future, just ensuring that the resource is released first
|
|
||
| void _writeFilesToBuffer(List<File> files, StringBuffer buffer) { | ||
| for (File outputFile in files) { | ||
| if (platform.isWindows) { |
|
I can't see if the devicelab failure is real or not, so I'll rollback for now |
This reverts commit ea7876a.
Description
This is a reland of #37508. The depfile's were not correctly escaped for windows, which caused failures when rebuilding.
Additionally fixes a bug in the file cache cleanup, and ensures we use a package uri when building a snapshot in assemble.