Unverified Commit 03575d7a authored by Christopher Fujino's avatar Christopher Fujino Committed by GitHub

make the tar c command in prepare_package.dart verbose (#139687)

Help debug https://github.com/flutter/flutter/issues/139597
parent 98e7ed13
...@@ -528,6 +528,8 @@ class ArchiveCreator { ...@@ -528,6 +528,8 @@ class ArchiveCreator {
'tar', 'tar',
'cJf', 'cJf',
output.absolute.path, output.absolute.path,
// Print out input files as they get added, to debug hangs
'--verbose',
path.basename(source.absolute.path), path.basename(source.absolute.path),
], workingDirectory: fs.directory(path.dirname(source.absolute.path))); ], workingDirectory: fs.directory(path.dirname(source.absolute.path)));
} }
......
...@@ -159,7 +159,7 @@ void main() { ...@@ -159,7 +159,7 @@ void main() {
if (platform.isWindows) 'attrib -h .git': null, if (platform.isWindows) 'attrib -h .git': null,
if (platform.isWindows) '7za a -tzip -mx=9 $archiveName flutter': null if (platform.isWindows) '7za a -tzip -mx=9 $archiveName flutter': null
else if (platform.isMacOS) 'zip -r -9 --symlinks $archiveName flutter': null else if (platform.isMacOS) 'zip -r -9 --symlinks $archiveName flutter': null
else if (platform.isLinux) 'tar cJf $archiveName flutter': null, else if (platform.isLinux) 'tar cJf $archiveName --verbose flutter': null,
})); }));
await creator.initializeRepo(); await creator.initializeRepo();
await creator.createArchive(); await creator.createArchive();
...@@ -197,7 +197,7 @@ void main() { ...@@ -197,7 +197,7 @@ void main() {
if (platform.isWindows) 'attrib -h .git': null, if (platform.isWindows) 'attrib -h .git': null,
if (platform.isWindows) '7za a -tzip -mx=9 $archiveName flutter': null if (platform.isWindows) '7za a -tzip -mx=9 $archiveName flutter': null
else if (platform.isMacOS) 'zip -r -9 --symlinks $archiveName flutter': null else if (platform.isMacOS) 'zip -r -9 --symlinks $archiveName flutter': null
else if (platform.isLinux) 'tar cJf $archiveName flutter': null, else if (platform.isLinux) 'tar cJf $archiveName --verbose flutter': null,
}; };
processManager.addCommands(convertResults(calls)); processManager.addCommands(convertResults(calls));
creator = ArchiveCreator( creator = ArchiveCreator(
...@@ -247,7 +247,7 @@ void main() { ...@@ -247,7 +247,7 @@ void main() {
if (platform.isWindows) 'attrib -h .git': null, if (platform.isWindows) 'attrib -h .git': null,
if (platform.isWindows) '7za a -tzip -mx=9 $archiveName flutter': null if (platform.isWindows) '7za a -tzip -mx=9 $archiveName flutter': null
else if (platform.isMacOS) 'zip -r -9 --symlinks $archiveName flutter': null else if (platform.isMacOS) 'zip -r -9 --symlinks $archiveName flutter': null
else if (platform.isLinux) 'tar cJf $archiveName flutter': null, else if (platform.isLinux) 'tar cJf $archiveName --verbose flutter': null,
}; };
processManager.addCommands(convertResults(calls)); processManager.addCommands(convertResults(calls));
creator = ArchiveCreator( creator = ArchiveCreator(
...@@ -306,7 +306,7 @@ void main() { ...@@ -306,7 +306,7 @@ void main() {
if (platform.isWindows) 'attrib -h .git': null, if (platform.isWindows) 'attrib -h .git': null,
if (platform.isWindows) '7za a -tzip -mx=9 $archiveName flutter': null if (platform.isWindows) '7za a -tzip -mx=9 $archiveName flutter': null
else if (platform.isMacOS) 'zip -r -9 --symlinks $archiveName flutter': null else if (platform.isMacOS) 'zip -r -9 --symlinks $archiveName flutter': null
else if (platform.isLinux) 'tar cJf $archiveName flutter': null, else if (platform.isLinux) 'tar cJf $archiveName --verbose flutter': null,
}; };
processManager.addCommands(convertResults(calls)); processManager.addCommands(convertResults(calls));
creator = ArchiveCreator( creator = ArchiveCreator(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment