From e98e3a75b380257d3f8e01c7f9216bc529ecc2ac Mon Sep 17 00:00:00 2001 From: Myles Hollowed Date: Fri, 18 Oct 2024 14:51:32 -0700 Subject: [PATCH] Fix: Stop overwriting absolute paths --- core/dbt/contracts/graph/nodes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/dbt/contracts/graph/nodes.py b/core/dbt/contracts/graph/nodes.py index 2d9ff77b385..196d902e59c 100644 --- a/core/dbt/contracts/graph/nodes.py +++ b/core/dbt/contracts/graph/nodes.py @@ -251,7 +251,7 @@ def get_target_write_path( # This is called for both the "compiled" subdirectory of "target" and the "run" subdirectory if os.path.basename(self.path) == os.path.basename(self.original_file_path): # One-to-one relationship of nodes to files. - path = self.original_file_path + path = self.path else: # Many-to-one relationship of nodes to files. path = os.path.join(self.original_file_path, self.path)