anchor.diff:      return depend.resolve();
     }
     
  -  static String hostedCacheDir() {
  -    var path = baseCacheDir();
  -    return Path.join(path, "hosted");
  -  }
  -  
  -  static String baseCacheDir() {
  +  static String _baseCacheDir() {
       var path;
       var home = Platform.environment['PUB_CACHE'];
       if (home != null) {
  
positive.code: 
  class Pub {
    
    final Map<String, _PubHost> _hosts;
  
    /**
     * [cache] is the path to the cache directory. The default being
     * the retrieved path from cacheDir()
     */
    factory Pub() {
      var hosts = _PubHost.resolveAllHosts();
      return new Pub._internal(hosts);
    }
    
    Pub._internal(this._hosts);
  
    /**
     * Resolves a hosted package.
  
negative.code: }
  
  class _PubHost {
  
    final String name;
    final String path;
    final List<Package> packages;
    
    _PubHost(this.name, this.path, this.packages);
    
    static _PubHost resolveHost(String dir, String host) {
      var hosted = Path.join(dir, host);
      var packages = <Package>[];
      if (FileSystemEntity.isDirectorySync(hosted)) {
        var hostDir = new Directory(hosted);
  