Skip to content

Commit db7cf74

Browse files
stepanchegfacebook-github-bot
authored andcommitted
.relative_to() -> relative_to= in defs.bzl
Summary: Migrating another mutating method in `cmd_args`. Reviewed By: JakobDegen Differential Revision: D58844450 fbshipit-source-id: c980a487cde86cf8f398e98e890577ac34be4bbc
1 parent 0113242 commit db7cf74

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

defs.bzl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,14 @@ def _symlinked_buck2_and_tpx_impl(ctx: AnalysisContext) -> list[Provider]:
3131
cmd = cmd_args(
3232
"cmd.exe",
3333
"/c",
34-
cmd_args(out, format = "set BUCK2_BINARY_DIR_RELATIVE_TO={}&&").relative_to(buck2, parent = 1),
34+
cmd_args(out, format = "set BUCK2_BINARY_DIR_RELATIVE_TO={}&&", relative_to = (buck2, 1)),
3535
out.project(buck2_binary),
3636
hidden = out,
3737
)
3838
else:
3939
cmd = cmd_args(
4040
"/usr/bin/env",
41-
cmd_args(out, format = "BUCK2_BINARY_DIR_RELATIVE_TO={}").relative_to(buck2, parent = 1),
41+
cmd_args(out, format = "BUCK2_BINARY_DIR_RELATIVE_TO={}", relative_to = (buck2, 1)),
4242
out.project(buck2_binary),
4343
hidden = out,
4444
)

0 commit comments

Comments
 (0)