Index: utils/pub/version_solver.dart |
diff --git a/utils/pub/version_solver.dart b/utils/pub/version_solver.dart |
index 45d47e8aa75a4c1eb87381501461c64254a56ef0..c00cda5f533ff5a1e3766a335eb47abb0c7cf588 100644 |
--- a/utils/pub/version_solver.dart |
+++ b/utils/pub/version_solver.dart |
@@ -283,8 +283,8 @@ class ChangeVersion implements WorkItem { |
Version version) { |
// If there is no version, it means no package, so no dependencies. |
if (version == null) { |
- return |
- new Future<Map<String, PackageRef>>.immediate(<String, PackageRef>{}); |
+ return new Future<Map<String, PackageRef>>.immediate( |
+ <String, PackageRef>{}); |
} |
var id = new PackageId(package, source, version, description); |
@@ -293,6 +293,14 @@ class ChangeVersion implements WorkItem { |
for (var dependency in pubspec.dependencies) { |
dependencies[dependency.name] = dependency; |
} |
+ |
+ // Include dev dependencies only from the root package. |
+ if (id.isRoot) { |
+ for (var dependency in pubspec.devDependencies) { |
+ dependencies[dependency.name] = dependency; |
+ } |
+ } |
+ |
return dependencies; |
}); |
} |