anchor.diff:      _packageRefs = <PackageRef>[];
   
       Directory dartlangDir = new Directory(
  -        path.join(location.path, 'hosted', _hostedPackageDirectoryName));
  +        path.join(location.path, 'hosted', _getHostedPackageDirectoryName()));
       if (dartlangDir.existsSync()) {
         _packageRefs.addAll(dartlangDir
             .listSync()
  
positive.code: 
    List<Application> _applications;
    List<PackageRef> _packageRefs;
  
    String get _hostedPackageDirectoryName {
      final url = Uri.parse(
          Platform.environment['PUB_HOSTED_URL'] ?? 'https://pub.dartlang.org');
      return url.host;
    }
  
    /// Create a pubcache instance. [dir] defaults to the default platform pub
    /// cache location.
  
negative.code: 
    Directory _getSubDir(Directory dir, String name) =>
        new Directory(path.join(dir.path, name));
  
    String _getHostedPackageDirectoryName() {
      final url = Uri.parse(
          Platform.environment['PUB_HOSTED_URL'] ?? 'https://pub.dartlang.org');
      return url.host;
    }
  }
  
  /// A Dart application; a package with an entry-point, available via `pub global
  