Index: sdk/lib/_internal/pub/lib/src/path_source.dart |
diff --git a/sdk/lib/_internal/pub/lib/src/path_source.dart b/sdk/lib/_internal/pub/lib/src/path_source.dart |
index 7d6393598c1ea5f7d4e5e3eaf0baf39dfe4a0695..ac37ec72224a7fdba057ef69425ff61c7d45b6c0 100644 |
--- a/sdk/lib/_internal/pub/lib/src/path_source.dart |
+++ b/sdk/lib/_internal/pub/lib/src/path_source.dart |
@@ -34,8 +34,8 @@ class PathSource extends Source { |
bool descriptionsEqual(description1, description2) { |
try { |
// Compare real paths after normalizing and resolving symlinks. |
- var path1 = new File(description1["path"]).fullPathSync(); |
- var path2 = new File(description2["path"]).fullPathSync(); |
+ var path1 = canonicalize(description1["path"]); |
+ var path2 = canonicalize(description2["path"]); |
return path1 == path2; |
} on FileIOException catch (ex) { |
// If either of the files couldn't be found, fall back to just comparing |