Skip to content

Commit 6f811d1

Browse files
committed
fix: ensure GraphConfig.root_dir is an absolute path
1 parent d3829d2 commit 6f811d1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/taskgraph/config.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,9 @@ def validate_graph_config(config):
157157

158158

159159
def load_graph_config(root_dir):
160+
# ensure we have an absolute path; this is required for assumptions
161+
# made later, such as the `vcs_root` being a directory above `root_dir`
162+
root_dir = os.path.abspath(root_dir)
160163
config_yml = os.path.join(root_dir, "config.yml")
161164
if not os.path.exists(config_yml):
162165
raise Exception(f"Couldn't find taskgraph configuration: {config_yml}")

0 commit comments

Comments
 (0)