Index: utils/pub/validator/lib.dart |
diff --git a/utils/pub/validator/lib.dart b/utils/pub/validator/lib.dart |
index 7346223ebaf27a68231d6330af382a763bfcf87f..c72d309c25e270d7e4a03b8455d4da1997eec281 100644 |
--- a/utils/pub/validator/lib.dart |
+++ b/utils/pub/validator/lib.dart |
@@ -7,6 +7,8 @@ library lib_validator; |
import 'dart:async'; |
import 'dart:io'; |
+import '../../../pkg/path/lib/path.dart' as path; |
+ |
import '../entrypoint.dart'; |
import '../io.dart'; |
import '../system_cache.dart'; |
@@ -31,7 +33,7 @@ class LibValidator extends Validator { |
} |
return listDir(libDir).then((files) { |
- files = files.map((file) => relativeTo(file, libDir)).toList(); |
+ files = files.map((file) => path.relative(file, from: libDir)).toList(); |
if (files.isEmpty) { |
errors.add('You must have a non-empty "lib" directory.\n' |
"Without that, users cannot import any code from your package."); |