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
092f64abdf
commit
880a57f3a9
@ -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)]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user