commit | 3dcb5d13fd7ec3f11c5b57c0bef001067cf1a77f | [log] [tgz] |
---|---|---|
author | pq <pquitslund@google.com> | Thu Oct 04 22:08:00 2018 +0000 |
committer | commit-bot@chromium.org <commit-bot@chromium.org> | Thu Oct 04 22:08:00 2018 +0000 |
tree | d8e3476d868c417ac1772214cb2bbf8e506fdaf4 | |
parent | ced7ee6f4b2d16bc70a3d3fc2b05ac839917dd7d [diff] |
normalize pubspec paths Change-Id: Ic56b9e305714e2c9e716b79b26aaf42e37e2a7a3 Reviewed-on: https://dart-review.googlesource.com/c/78144 Reviewed-by: Konstantin Shcheglov <scheglov@google.com> Commit-Queue: Phil Quitslund <pquitslund@google.com>
diff --git a/pkg/analyzer/lib/src/lint/linter.dart b/pkg/analyzer/lib/src/lint/linter.dart index 577d5e3..a94e348 100644 --- a/pkg/analyzer/lib/src/lint/linter.dart +++ b/pkg/analyzer/lib/src/lint/linter.dart
@@ -122,7 +122,8 @@ Iterable<AnalysisErrorInfo> _lintPubspecFile(File sourceFile) => lintPubspecSource( contents: sourceFile.readAsStringSync(), - sourcePath: sourceFile.absolute.path); + sourcePath: options.resourceProvider.pathContext + .normalize(sourceFile.absolute.path)); } class FileGlobFilter extends LintFilter {