From e103110751f763f51e2396e3f82702ca2c5331fd Mon Sep 17 00:00:00 2001 From: honglooker Date: Wed, 30 Jul 2025 16:55:26 -0400 Subject: [PATCH 1/2] Update toolchains.md Remove `dev_dependency = True` for use_repo_rule invocations - invalid kwarg --- docs/toolchains.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/docs/toolchains.md b/docs/toolchains.md index de819cb515..23cb3d4718 100644 --- a/docs/toolchains.md +++ b/docs/toolchains.md @@ -432,13 +432,11 @@ interpreter, then introspect its installation to generate a full toolchain. local_runtime_repo = use_repo_rule( "@rules_python//python/local_toolchains:repos.bzl", "local_runtime_repo", - dev_dependency = True, ) local_runtime_toolchains_repo = use_repo_rule( "@rules_python//python/local_toolchains:repos.bzl", "local_runtime_toolchains_repo", - dev_dependency = True, ) # Step 1: Define the Python runtime From e34e7f9a6122ab11527cd829602613b3f6668c82 Mon Sep 17 00:00:00 2001 From: Richard Levasseur Date: Mon, 11 Aug 2025 09:03:22 -0700 Subject: [PATCH 2/2] move dev_dep=True to repo rule invocation --- docs/toolchains.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/toolchains.md b/docs/toolchains.md index 23cb3d4718..52e619a120 100644 --- a/docs/toolchains.md +++ b/docs/toolchains.md @@ -444,6 +444,7 @@ local_runtime_repo( name = "local_python3", interpreter_path = "python3", on_failure = "fail", + dev_dependency = True ) # Step 2: Create toolchains for the runtimes @@ -452,6 +453,7 @@ local_runtime_toolchains_repo( runtimes = ["local_python3"], # TIP: The `target_settings` arg can be used to activate them based on # command line flags; see docs below. + dev_dependency = True ) # Step 3: Register the toolchains