From 5c93837e27f7314877f7d97cb25c892fc4b9eee6 Mon Sep 17 00:00:00 2001 From: Jenn Magder Date: Tue, 10 Sep 2024 13:12:07 -0700 Subject: [PATCH] Fix 'dart --enable-asserts' typo in license check script (flutter/engine#55082) `dart -enable-asserts` should be `--enable-asserts` with two `-`s. License script is complaining: ``` Could not find an option with short name "-e". ``` https://logs.chromium.org/logs/flutter/buildbucket/cr-buildbucket/8737159074465654417/+/u/test:_licenses_check/stdout Typo from: https://github.com/flutter/engine/pull/54845/files#diff-0845c01add635bd6976b8aefd761c14899002c53f9d0ff596cc7f4667cd49f71R84 Fixes https://github.com/flutter/flutter/issues/154942 [C++, Objective-C, Java style guides]: https://github.com/flutter/engine/blob/main/CONTRIBUTING.md#style --- engine/src/flutter/ci/licenses.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/src/flutter/ci/licenses.sh b/engine/src/flutter/ci/licenses.sh index 9e366d2ce9..d5aab8294c 100755 --- a/engine/src/flutter/ci/licenses.sh +++ b/engine/src/flutter/ci/licenses.sh @@ -81,7 +81,7 @@ dart --version # Runs the tests for the license script. function run_tests() ( cd "$SRC_DIR/flutter/tools/licenses" - find . -name "*_test.dart" | xargs -n 1 dart -enable-asserts + find . -name "*_test.dart" | xargs -n 1 dart --enable-asserts ) # Collects the license information from the repo.