Skip to content

Commit 6038ac4

Browse files
docs(toolchains): set dev_dependency=True on repo rule invocation (#3127)
Move `dev_dependency = True` to the repo rule invocation. The `use_repo_rule` call doesn't support that arg. --------- Co-authored-by: Richard Levasseur <[email protected]>
1 parent 119fa6a commit 6038ac4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/toolchains.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -432,20 +432,19 @@ interpreter, then introspect its installation to generate a full toolchain.
432432
local_runtime_repo = use_repo_rule(
433433
"@rules_python//python/local_toolchains:repos.bzl",
434434
"local_runtime_repo",
435-
dev_dependency = True,
436435
)
437436

438437
local_runtime_toolchains_repo = use_repo_rule(
439438
"@rules_python//python/local_toolchains:repos.bzl",
440439
"local_runtime_toolchains_repo",
441-
dev_dependency = True,
442440
)
443441

444442
# Step 1: Define the Python runtime
445443
local_runtime_repo(
446444
name = "local_python3",
447445
interpreter_path = "python3",
448446
on_failure = "fail",
447+
dev_dependency = True
449448
)
450449

451450
# Step 2: Create toolchains for the runtimes
@@ -454,6 +453,7 @@ local_runtime_toolchains_repo(
454453
runtimes = ["local_python3"],
455454
# TIP: The `target_settings` arg can be used to activate them based on
456455
# command line flags; see docs below.
456+
dev_dependency = True
457457
)
458458

459459
# Step 3: Register the toolchains

0 commit comments

Comments
 (0)