Skip to content

Commit

Permalink
Fix: Stop overwriting absolute paths
Browse files Browse the repository at this point in the history
  • Loading branch information
Myles1 committed Oct 18, 2024
1 parent ba6c7ba commit e98e3a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/dbt/contracts/graph/nodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e98e3a7

Please sign in to comment.