From 172b40bf2534dd71ece43ea017f578cd8e342a90 Mon Sep 17 00:00:00 2001 From: Pulasthi Bandara Date: Wed, 4 Sep 2024 12:24:59 +1200 Subject: [PATCH] fix path resolution for nested modules --- packages/terraform/src/graph.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/terraform/src/graph.ts b/packages/terraform/src/graph.ts index 3fad2b96..9d4e99e8 100644 --- a/packages/terraform/src/graph.ts +++ b/packages/terraform/src/graph.ts @@ -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,