From a7dc86cf8ba49711facdce29525dcf8c6db2b9bc Mon Sep 17 00:00:00 2001
From: Natalie Weizenbaum <nweiz@google.com>
Date: Wed, 6 Jan 2016 13:22:13 -0800
Subject: [PATCH] Fix a failing test on Windows.

Pub wasn't canonicalizing a path in the same way as the tests, which
caused a difference on the Windows bots.

R=rnystrom@google.com

Review URL: https://codereview.chromium.org//1560393002 .
---
 lib/src/pubspec.dart | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/src/pubspec.dart b/lib/src/pubspec.dart
index 74e9becd..3cfcf6ab 100644
--- a/lib/src/pubspec.dart
+++ b/lib/src/pubspec.dart
@@ -348,7 +348,7 @@ class Pubspec {
           // Make the package dir absolute because for the entrypoint it'll just
           // be ".", which may be confusing.
           'Could not find a file named "pubspec.yaml" in '
-              '"${path.normalize(path.absolute(packageDir))}".',
+              '"${canonicalize(packageDir)}".',
           pubspecPath);
     }
 
-- 
GitLab