Skip to content

Commit

Permalink
fix path resolution for nested modules
Browse files Browse the repository at this point in the history
  • Loading branch information
pulasthibandara committed Sep 4, 2024
1 parent d1d2046 commit 172b40b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/terraform/src/graph.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,10 @@ export const createDependencies: CreateDependencies = async (_, ctx) => {
continue
}

const depSourceAbs = path.resolve(file.file, depSourcePathRel)
const depSourceAbs = path.resolve(
path.dirname(file.file),
depSourcePathRel
)

const depSourceRelativeToWorkspace = path.relative(
workspaceRoot,
Expand Down

0 comments on commit 172b40b

Please sign in to comment.