mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Fix analyzer to not change the working directory.
I didn't understand what was going on before. Now I do. This is a better fix that making the path absolute.
This commit is contained in:
parent
9f0d108667
commit
3cc25bb255
@ -49,10 +49,10 @@ def main():
|
||||
|
||||
try:
|
||||
subprocess.check_output([
|
||||
DARTANALYZER, "--package-warnings", os.path.abspath(args.app_path),
|
||||
DARTANALYZER, "--package-warnings", args.app_path,
|
||||
"--package-root", os.path.join(WORKBENCH, "packages"),
|
||||
"--fatal-warnings"
|
||||
], stderr=subprocess.STDOUT, cwd=WORKBENCH)
|
||||
], stderr=subprocess.STDOUT)
|
||||
except subprocess.CalledProcessError as e:
|
||||
errors = [l for l in e.output.split('\n')
|
||||
if not any(p.match(l) for p in _IGNORED_PATTERNS)]
|
||||
|
||||
@ -3,4 +3,4 @@ set -ex
|
||||
|
||||
./sky/tools/gn --release
|
||||
ninja -j 4 -C out/Release
|
||||
./sky/tools/skyanalyzer --congratulate ../../../examples/stocks/lib/main.dart
|
||||
./sky/tools/skyanalyzer --congratulate examples/stocks/lib/main.dart
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user