未验证 提交 c2d3ca6f 编写于 作者: G gaaclarke 提交者: GitHub

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

上级 e2a6b55e
#!/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" \
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册