diff --git a/dev/bots/docs.sh b/dev/bots/docs.sh index 49029483c3..d5338aa492 100755 --- a/dev/bots/docs.sh +++ b/dev/bots/docs.sh @@ -28,6 +28,11 @@ function generate_docs() { # >>> If you update this version, also update it in dev/bots/analyze_sample_code.dart <<< "$DART" pub global activate snippets 0.2.5 + # Run the snippets tool once to force building of the package executable, + # since "dart pub global run" has issues with startup concurrency. + # TODO(gspencergoog): Remove once pub issue is fixed, https://github.com/dart-lang/pub/issues/3165 + "$DART" pub global run snippets --help + # This script generates a unified doc set, and creates # a custom index.html, placing everything into dev/docs/doc. (cd "$FLUTTER_ROOT/dev/tools" && "$FLUTTER" pub get)