anchor.diff:  
         // Resolve dependencies only for non-legacy package versions.
         if (!status.isLegacy) {
  -        depsResolved = await _resolveDependencies(
  -            toolEnvRef.toolEnv, job, pkgPath, usesFlutter, logFileOutput);
  +        depsResolved = await _resolveDependencies(logger, toolEnvRef.toolEnv,
  +            job, pkgPath, usesFlutter, logFileOutput);
         } else {
           logFileOutput.write(
               'Package version does not allow current SDK, skipping pub upgrade.\n\n');
  
positive.code: 
      if (r.processResult.exitCode != 0) {
        if (hasContent || _isKnownFailurePattern(_mergeOutput(r.processResult))) {
          _logger.info('Error while running dartdoc for $job (see log.txt).');
        } else {
          final output = _mergeOutput(r.processResult, compressStdout: true);
          _logger.warning('Error while running dartdoc for $job.\n$output');
        }
      }
  
  
negative.code:     _appendLog(logFileOutput, pr);
    }
  
    Future<PubDartdocData> _loadPubDartdocData(
        Logger logger, String outputDir) async {
      final file = File(p.join(outputDir, _pubDataFileName));
      if (!file.existsSync()) {
        return null;
  