Index: lib/src/command/cache_add.dart |
diff --git a/lib/src/command/cache_add.dart b/lib/src/command/cache_add.dart |
index 9ae3d62ff924079d6b8c52c81c721f3457fba728..ae3c1c3369914060c9337ed253f29f4138728f21 100644 |
--- a/lib/src/command/cache_add.dart |
+++ b/lib/src/command/cache_add.dart |
@@ -53,7 +53,7 @@ class CacheAddCommand extends PubCommand { |
} |
// TODO(rnystrom): Support installing from git too. |
- var source = cache.source("hosted"); |
+ var source = cache.hosted; |
// TODO(rnystrom): Allow specifying the server. |
var ids = (await source.getVersions(cache.sources.hosted.refFor(package))) |