title: Flutter-Failed to build build_runner:build_runner on modularization
body: <p>Describe my issue, i have modularization project so will be have different pubspec.yaml, every pubspec i use package for testing :</p>
  <pre><code> mockito: ^5.0.8
    build_runner: ^2.0.4
  
  dependency_overrides:
    analyzer: ^1.7.0
  </code></pre>
  <p>so after generate <code>flutter pub run build_runner build --delete-conflicting-outputs</code> i get issue's, then i search google i it this cause analyzer, then i follow step to change analyze version, still error, in this error :</p>
  <pre><code>(base) dendimuhmd@macbook-pro datasources % flutter pub run build_runner build                             
  
  Changing current working directory to: /Users/dendimuhmd/Documents/dev/flutter/dicoding/creative-movie/core
  Failed to build build_runner:build_runner:
  ../../../../../../.pub-cache/hosted/pub.dartlang.org/build_resolvers-2.0.6/lib/src/resolver.dart:18:8: Error: Error when reading '../../../../../../.pub-cache/hosted/pub.dartlang.org/analyzer-1.7.2/lib/src/clients/build_resolvers/build_resolvers.dart': No such file or directory
  import 'package:analyzer/src/clients/build_resolvers/build_resolvers.dart';
         ^
  ../../../../../../.pub-cache/hosted/pub.dartlang.org/build_resolvers-2.0.6/lib/src/analysis_driver.dart:9:8: Error: Error when reading '../../../../../../.pub-cache/hosted/pub.dartlang.org/analyzer-1.7.2/lib/src/clients/build_resolvers/build_resolvers.dart': No such file or directory
  import 'package:analyzer/src/clients/build_resolvers/build_resolvers.dart';
         ^
  ../../../../../../.pub-cache/hosted/pub.dartlang.org/build_resolvers-2.0.6/lib/src/build_asset_uri_resolver.dart:11:8: Error: Error when reading '../../../../../../.pub-cache/hosted/pub.dartlang.org/analyzer-1.7.2/lib/src/clients/build_resolvers/build_resolvers.dart': No such file or directory
  import 'package:analyzer/src/clients/build_resolvers/build_resolvers.dart';......
  </code></pre>
  <p>what is issue with analyzer, it this cause analyzer or?</p>
  <p><a href="https://i.stack.imgur.com/G7bRA.png" rel="nofollow noreferrer">Modularization structure</a></p>