anchor.diff:          p.join(_hostedUrl, 'documentation', task.package, task.version),
         ],
         workingDirectory: pkgPath,
  +      environment: environment,
       );
   
       // write build logs
  
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:     }
    }
  
    Future _generateDocs(
      Task task,
      String pkgPath,
      String outputDir,
      Map<String, String> environment,
    ) async {
      final pr = await Process.run(
        'dartdoc',
        [
  