Skip to content

Commit

Permalink
Changie
Browse files Browse the repository at this point in the history
  • Loading branch information
gshank authored and dbeatty10 committed Jun 28, 2023
1 parent e1b16b1 commit d6b393a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .changes/unreleased/Fixes-20230626-115838.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
kind: Fixes
body: Move project_root contextvar into events.contextvars
time: 2023-06-26T11:58:38.965299-04:00
custom:
Author: gshank
Issue: "7937"
2 changes: 1 addition & 1 deletion core/dbt/graph/selector_methods.py
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ def search(self, included_nodes: Set[UniqueId], selector: str) -> Iterator[Uniqu
# get project root from contextvar
project_root = get_project_root()
if project_root:
root = Path(project_root())
root = Path(project_root)
else:
root = Path.cwd()
paths = set(p.relative_to(root) for p in root.glob(selector))
Expand Down

0 comments on commit d6b393a

Please sign in to comment.