Skip to content

Commit

Permalink
fix: Handle empty folder on newer Go versions
Browse files Browse the repository at this point in the history
  • Loading branch information
darscan committed May 15, 2023
1 parent 3766a62 commit 4c29595
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -524,6 +524,9 @@ export async function buildDepGraphFromImportsAndModules(
if (/cannot find main module, but found/.test(err)) {
return depGraphBuilder.build();
}
if (/does not contain main module/.test(err)) {
return depGraphBuilder.build();
}
const userError = new CustomError(err);
userError.userMessage = `'go ${args.join(
' ',
Expand Down

0 comments on commit 4c29595

Please sign in to comment.