Skip to content

Commit

Permalink
Normsep Paths in taskgraph.util.hash
Browse files Browse the repository at this point in the history
On windows str(Purepath()) is used for matching the pattern
which will match nothing, given `\\` is in the string.
  • Loading branch information
strseb authored and ahal committed Nov 27, 2023
1 parent 7ad54bd commit e694483
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/taskgraph/util/hash.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,4 @@ def _find_matching_files(base_path, pattern):

@memoize
def _get_all_files(base_path):
return [str(path) for path in Path(base_path).rglob("*") if path.is_file()]
return [mozpath.normsep(str(path)) for path in Path(base_path).rglob("*") if path.is_file()]

0 comments on commit e694483

Please sign in to comment.