anchor.diff:      }
     }
   
  -  Future _generateDocs(Task task, String pkgPath, String outputDir) async {
  +  Future _generateDocs(
  +    Task task,
  +    String pkgPath,
  +    String outputDir,
  +    Map<String, String> environment,
  +  ) async {
       final pr = await Process.run(
         'dartdoc',
         [
  
positive.code:       // resolve dependencies
        await _resolveDependencies(pubEnv, task, pkgPath);
  
        await _generateDocs(task, pkgPath, outputDir);
  
        // TODO: upload doc/api to the appropriate bucket
      } finally {
  
negative.code:         p.join(_hostedUrl, 'documentation', task.package, task.version),
        ],
        workingDirectory: pkgPath,
        environment: environment,
      );
  
      // write build logs
  