Index: third_party/mojo/src/mojo/public/tools/dart_analyze.py |
diff --git a/third_party/mojo/src/mojo/public/tools/dart_analyze.py b/third_party/mojo/src/mojo/public/tools/dart_analyze.py |
index b90cbef558dd3652c409b7767ca2fb32598cf85f..6e7dfc428bdabe5565b102e593df0880ed3164a2 100755 |
--- a/third_party/mojo/src/mojo/public/tools/dart_analyze.py |
+++ b/third_party/mojo/src/mojo/public/tools/dart_analyze.py |
@@ -31,6 +31,9 @@ _IGNORED_PATTERNS = [ |
re.compile(r'.*is a part and can not|^Only libraries can be analyzed'), |
# TODO: Remove this once dev SDK includes Uri.directory constructor. |
re.compile(r'.*The class \'Uri\' does not have a constructor \'directory\''), |
+ # TODO: Remove this once Sky no longer generates this warning. |
+ # dartbug.com/22836 |
+ re.compile(r'.*cannot both be unnamed'), |
] |
def _success(stamp_file): |
@@ -66,7 +69,7 @@ def main(args): |
cmd.extend(dart_files) |
cmd.extend(args) |
- cmd.append("--package-root=%s" % temp_dir) |
+ cmd.append("--package-root=%s/packages" % temp_dir) |
cmd.append("--fatal-warnings") |
errors = 0 |