Skip to content

Commit

Permalink
.relative_to() -> relative_to=
Browse files Browse the repository at this point in the history
Summary: `.relative_to()` is deprecated and will be removed.

Reviewed By: JakobDegen

Differential Revision: D58845436

fbshipit-source-id: c94245c8b84dfd83a79fd4d414e1a0951c02a2ae
  • Loading branch information
stepancheg authored and facebook-github-bot committed Jul 4, 2024
1 parent 7598a4a commit 9ee264c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions prelude/genrule.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -289,13 +289,13 @@ def process_genrule(

if is_windows:
rewrite_scratch_path = cmd_args(
cmd_args(ctx.label.project_root).relative_to(srcs_artifact),
cmd_args(ctx.label.project_root, relative_to = srcs_artifact),
format = 'set "BUCK_SCRATCH_PATH={}\\%BUCK_SCRATCH_PATH%"',
)
else:
srcs_dir = cmd_args(srcs_dir, quote = "shell")
rewrite_scratch_path = cmd_args(
cmd_args(ctx.label.project_root, quote = "shell").relative_to(srcs_artifact),
cmd_args(ctx.label.project_root, quote = "shell", relative_to = srcs_artifact),
format = "export BUCK_SCRATCH_PATH={}/$BUCK_SCRATCH_PATH",
)

Expand Down

0 comments on commit 9ee264c

Please sign in to comment.