Switched the linter to use the dart that comes with the engine. (flutter/engine#20247)

This commit is contained in:
gaaclarke 2020-08-05 09:43:53 -07:00 committed by GitHub
parent 77ff9d2d8e
commit 88f24d6af2

View File

@ -1,6 +1,9 @@
#!/bin/bash
set -e
SCRIPT_DIR=`realpath $(dirname "${BASH_SOURCE[0]}")`
DART="${SCRIPT_DIR}/../../third_party/dart/tools/sdks/dart-sdk/bin/dart"
PUB="${SCRIPT_DIR}/../../third_party/dart/tools/sdks/dart-sdk/bin/pub"
# Needed because if it is set, cd may print the path it changed to.
unset CDPATH
@ -41,7 +44,7 @@ if [ ! -f "$COMPILE_COMMANDS" ]; then
fi
cd "$CI_DIR"
pub get && dart \
$PUB get && $DART \
--disable-dart-dev \
bin/lint.dart \
--compile-commands="$COMPILE_COMMANDS" \