Index: sdk/lib/_internal/pub/lib/src/validator/dependency.dart |
diff --git a/sdk/lib/_internal/pub/lib/src/validator/dependency.dart b/sdk/lib/_internal/pub/lib/src/validator/dependency.dart |
index 2721d32aaa8e8fc0161290f3b488d88ff5d757a4..8e8ea84a85a1dd7ca5493ee26ee85baee345423d 100644 |
--- a/sdk/lib/_internal/pub/lib/src/validator/dependency.dart |
+++ b/sdk/lib/_internal/pub/lib/src/validator/dependency.dart |
@@ -69,7 +69,7 @@ class DependencyValidator extends Validator { |
try { |
var pubspecs = await entrypoint.cache.sources['hosted'] |
.getVersions(dep.name, dep.name); |
- versions = pubspecs.map((pubspec) => pubspec.version); |
+ versions = pubspecs.map((pubspec) => pubspec.version).toList(); |
} catch (error) { |
versions = []; |
} |