Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(435)

Unified Diff: lib/src/validator/dependency.dart

Issue 2044253003: Refactor Source and SourceRegistry. (Closed) Base URL: git@github.com:dart-lang/pub.git@master
Patch Set: Rename LiveSource to BoundSource. Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/src/system_cache.dart ('k') | test/dependency_computer/utils.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/validator/dependency.dart
diff --git a/lib/src/validator/dependency.dart b/lib/src/validator/dependency.dart
index 3caa8c264cdd80b45434bd4cfd90a7b4682bdb33..e00879ca9ebbc3fccc5008a1ab88a3f6bd234d02 100644
--- a/lib/src/validator/dependency.dart
+++ b/lib/src/validator/dependency.dart
@@ -9,7 +9,6 @@ import 'package:pub_semver/pub_semver.dart';
import '../entrypoint.dart';
import '../log.dart' as log;
import '../package.dart';
-import '../source/hosted.dart';
import '../validator.dart';
/// The range of all pub versions that don't support `^` version constraints.
@@ -66,8 +65,8 @@ class DependencyValidator extends Validator {
Future _warnAboutSource(PackageDep dep) async {
var versions;
try {
- var ids = await entrypoint.cache.sources['hosted']
- .getVersions(HostedSource.refFor(dep.name));
+ var ids = await entrypoint.cache.hosted
+ .getVersions(entrypoint.cache.sources.hosted.refFor(dep.name));
versions = ids.map((id) => id.version).toList();
} catch (error) {
versions = [];
« no previous file with comments | « lib/src/system_cache.dart ('k') | test/dependency_computer/utils.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698