Skip to content

Commit 8482342

Browse files
hvadehracopybara-github
authored andcommitted
Fix usage of paths.get_relative in cc_helper_internal.bzl
Bazel skylib does not have this method. PiperOrigin-RevId: 791632559 Change-Id: I222a58a74a0b5653491825979538780c83621837
1 parent d14dcd6 commit 8482342

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cc/common/cc_helper_internal.bzl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ def package_source_root(repository, package, sibling_repository_layout):
158158
return package
159159
if repository.startswith("@"):
160160
repository = repository[1:]
161-
return paths.get_relative(paths.get_relative("external", repository), package)
161+
return get_relative_path(paths.get_relative("external", repository), package)
162162

163163
def repository_exec_path(repository, sibling_repository_layout):
164164
"""
@@ -178,7 +178,7 @@ def repository_exec_path(repository, sibling_repository_layout):
178178
prefix = ".."
179179
if repository.startswith("@"):
180180
repository = repository[1:]
181-
return paths.get_relative(prefix, repository)
181+
return get_relative_path(prefix, repository)
182182

183183
# LINT.ThenChange(https://github.com/bazelbuild/bazel/blob/master/src/main/starlark/builtins_bzl/common/cc/cc_helper_internal.bzl:forked_exports)
184184

0 commit comments

Comments
 (0)