| Index: utils/pub/entrypoint.dart
 | 
| diff --git a/utils/pub/entrypoint.dart b/utils/pub/entrypoint.dart
 | 
| index 22d04ab0a3fb78826274cde74f7ca221d3b97d8c..abce4db8777548f03890d1710be4bb9d40cc9157 100644
 | 
| --- a/utils/pub/entrypoint.dart
 | 
| +++ b/utils/pub/entrypoint.dart
 | 
| @@ -106,8 +106,7 @@ class Entrypoint {
 | 
|     * completes when all dependencies are installed.
 | 
|     */
 | 
|    Future installDependencies() {
 | 
| -    return _validatePubspec()
 | 
| -      .chain((_) => _loadLockFile())
 | 
| +    return _loadLockFile()
 | 
|        .chain((lockFile) => resolveVersions(cache.sources, root, lockFile))
 | 
|        .chain(_installDependencies);
 | 
|    }
 | 
| @@ -118,8 +117,7 @@ class Entrypoint {
 | 
|     * [Future] that completes when all dependencies are installed.
 | 
|     */
 | 
|    Future updateAllDependencies() {
 | 
| -    return _validatePubspec()
 | 
| -      .chain((_) => resolveVersions(cache.sources, root, new LockFile.empty()))
 | 
| +    return resolveVersions(cache.sources, root, new LockFile.empty())
 | 
|        .chain(_installDependencies);
 | 
|    }
 | 
|  
 | 
| @@ -129,7 +127,7 @@ class Entrypoint {
 | 
|     * [Future] that completes when all dependencies are installed.
 | 
|     */
 | 
|    Future updateDependencies(List<String> dependencies) {
 | 
| -    return _validatePubspec().chain((_) => _loadLockFile()).chain((lockFile) {
 | 
| +    return _loadLockFile().chain((lockFile) {
 | 
|        var versionSolver = new VersionSolver(cache.sources, root, lockFile);
 | 
|        for (var dependency in dependencies) {
 | 
|          versionSolver.useLatestVersion(dependency);
 | 
| @@ -298,25 +296,4 @@ class Entrypoint {
 | 
|        return createSymlink(path, to);
 | 
|      });
 | 
|    }
 | 
| -
 | 
| -  /**
 | 
| -   * Validate that the pubspec for the entrypoint exists and specifies the name
 | 
| -   * of the root package.
 | 
| -   */
 | 
| -  Future _validatePubspec() {
 | 
| -    var future = new Future.immediate(null);;
 | 
| -    if (root.pubspec.isEmpty) {
 | 
| -      future = exists(join(root.dir, "pubspec.yaml")).transform((exists) {
 | 
| -        if (exists) return;
 | 
| -        throw 'Could not find a file named "pubspec.yaml" in the directory '
 | 
| -          '$path.';
 | 
| -      });
 | 
| -    }
 | 
| -
 | 
| -    return future.transform((_) {
 | 
| -      if (root.pubspec.name != null) return;
 | 
| -      throw '"pubspec.yaml" is missing the required "name" field (e.g. "name: '
 | 
| -        '${root.name}").';
 | 
| -    });
 | 
| -  }
 | 
|  }
 | 
| 
 |