Skip to content

Commit

Permalink
fix: conduit try resolve lib folder instead package library (#176)
Browse files Browse the repository at this point in the history
* fix: conduit try resolve lib folder instead package library
  • Loading branch information
crifurch committed Jan 22, 2023
1 parent f49add8 commit 0239096
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/runtime/lib/src/build.dart
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,10 @@ class Build {
await Future.forEach<Uri>(
astsToResolve,
(astUri) async {
final Uri package =
(await context.getPackageFromUri(astUri))?.packageUriRoot ?? astUri;
return context.analyzer.resolveUnitOrLibraryAt(package);
final package = await context.getPackageFromUri(astUri);
final Uri packageUri =
package?.packageUriRoot.resolve(package.name) ?? astUri;
return context.analyzer.resolveUnitOrLibraryAt(packageUri);
},
);

Expand Down

0 comments on commit 0239096

Please sign in to comment.