anchor.diff:      addWholeDirectory();
       pubGetOffline();
     }
  +
  +  Set<Project> addAll({Iterable<Project> excludeDependencies: const []}) {
  +    addPathDependentProjects(excludeDependencies: excludeDependencies);
  +    addPubspecFiles();
  +    pubGet();
  +    addWholeDirectory();
  +    pubGetOffline();
  +    return concat([excludeDependencies, pathDependentProjects]).toSet();
  +  }
   }
  
positive.code: class _TopLevelProjectFiles {
    final Dockerfile dockerfile;
    final _PathHandler pathHandler;
    final _AddHelper addHelper;
    final String dirPath;
  
    _TopLevelProjectFiles(Dockerfile dockerfile,
        ProjectDependencies topLevelProjectDeps, _PathHandler pathHandler)
        : this.dockerfile = dockerfile,
          dirPath = topLevelProjectDeps.project.installDirectory.path,
          this.pathHandler = pathHandler,
          addHelper = new _AddHelper(pathHandler, dockerfile);
  
    void addPubspecFiles() {
      final pubspecYaml = p.join(dirPath, 'pubspec.yaml');
  
negative.code:     addHelper.add(pubspecLock);
    }
  
    String get workDir => pathHandler.targetPath(dirPath);
  
    void pubGet() {
      dockerfile.workDir(workDir);
      dockerfile.run('pub', args: ['get']);
    }
  
    void pubGetOffline() {
      dockerfile.workDir(workDir);
      dockerfile.run('pub', args: ['get', '--offline']);
    }
  
  