de4e077ac6
Shows a progress update on the interactive terminal for running hooks. The progress update visually aligns with progress updates from pub `Building package executable... (1.3s)` as `Running build hooks... (0.7s)`. Closes: https://github.com/dart-lang/native/issues/2439 Progress updates visibility: * `dart run`, only if there are hooks to avoid cluttering stdout more. https://github.com/dart-lang/sdk/issues/61696 * `dart test`, also only if there are any hooks. * `dart build`, always show progress update lines. * `dart install`, always show progress updates lines. * `dart compile`, changed the check to check for the existence of hooks but don't ever run them. This CL also renames some "native assets" to "build hooks". This CL also fixes an issue with `dart test` run without `pub get` in a Flutter project. Closes: https://github.com/dart-lang/sdk/issues/61697 Change-Id: I88f6e07dff1d4f5c0733f83f073640b75cc54e79 Cq-Include-Trybots: luci.dart.try:pkg-linux-debug-try,pkg-linux-release-arm64-try,pkg-linux-release-try,pkg-mac-release-arm64-try,pkg-mac-release-try,pkg-win-release-arm64-try,pkg-win-release-try Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/453920 Reviewed-by: Michael Goderbauer <goderbauer@google.com> Reviewed-by: Ben Konyi <bkonyi@google.com> Commit-Queue: Daco Harkes <dacoharkes@google.com>