Index: utils/pub/pubspec.dart |
diff --git a/utils/pub/pubspec.dart b/utils/pub/pubspec.dart |
index a0b8c937ffb56bf651463eb913d88f10ad568db3..61e4fcc35abefb4c10cd4f8af1421739366cb6fe 100644 |
--- a/utils/pub/pubspec.dart |
+++ b/utils/pub/pubspec.dart |
@@ -110,15 +110,8 @@ class Pubspec { |
source.validateDescription(description, fromLockFile: false); |
- var nameFromSource = source.packageName(description); |
- if (nameFromSource != name) { |
- throw new FormatException('The name you specified for your ' |
- 'dependency, "$name", doesn\'t match the name "$nameFromSource" ' |
- '(from "$description").'); |
- } |
- |
dependencies.add(new PackageRef( |
- source, versionConstraint, description)); |
+ name, source, versionConstraint, description)); |
}); |
} |