Skip to content

Commit 47f7ab5

Browse files
authored
Workaround travis hangs by using default SDK version of pub (#2224)
* Reduce the amount of precompiling to fix hangs when building flutter docs. * Add verbose flag to figure out what's really going on * Stop using flutter pub
1 parent 4fd8577 commit 47f7ab5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tool/grind.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -770,8 +770,10 @@ Future<List<Map>> _buildFlutterDocs(
770770
['get'],
771771
workingDirectory: path.join(flutterPath, 'dev', 'snippets'),
772772
);
773+
// TODO(jcollins-g): flutter's dart SDK pub tries to precompile the universe
774+
// when using -spath. Why?
773775
await flutterRepo.launcher.runStreamed(
774-
flutterRepo.cachePub, ['global', 'activate', '-spath', '.'],
776+
'pub', ['global', 'activate', '-spath', '.', '-x', 'dartdoc'],
775777
workingDirectory: await futureCwd);
776778
return await flutterRepo.launcher.runStreamed(
777779
flutterRepo.cacheDart,

0 commit comments

Comments
 (0)