Skip to content

Commit 5ec7baa

Browse files
committed
fix relative path computation
1 parent bcc6cab commit 5ec7baa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

python/private/repo_utils.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ def _relative_to(mrctx, path, parent, fail = fail):
360360
path_d = _norm_path(mrctx, path) + "/"
361361
parent_d = _norm_path(mrctx, parent) + "/"
362362
if path_d.startswith(parent_d):
363-
return path.removeprefix(parent_d)
363+
return path.removeprefix(parent + "/")
364364
else:
365365
fail("{} is not relative to {}".format(path, parent))
366366

0 commit comments

Comments
 (0)