anchor.diff:      }
   
       Summary summary;
  +    Directory tempDir;
       try {
  -      final PackageAnalyzer analyzer =
  -          new PackageAnalyzer(flutterDir: envConfig.flutterSdkDir);
  +      tempDir = await Directory.systemTemp.createTemp('pana');
  +      final pubCacheDir = await tempDir.resolveSymbolicLinks();
  +      final PackageAnalyzer analyzer = new PackageAnalyzer(
  +        flutterDir: envConfig.flutterSdkDir,
  +        pubCacheDir: pubCacheDir,
  +      );
         summary = await analyzer.inspectPackage(
           task.package,
           version: task.version,
  
positive.code: // BSD-style license that can be found in the LICENSE file.
  
  import 'dart:async';
  
  import 'package:logging/logging.dart';
  import 'package:pana/pana.dart';
  
negative.code:       );
      } catch (e, st) {
        _logger.severe('Pana execution failed.', e, st);
      } finally {
        if (tempDir != null) {
          await tempDir.delete(recursive: true);
        }
      }
  
      final Analysis analysis = new Analysis.init(task.package, task.version);
  