Skip to content

Commit 9b16bfb

Browse files
authored
chore: cleanup unused attributes for the host_toolchain repo rule (#2195)
The attributes were not used, so we can remove them for now.
1 parent c9972d3 commit 9b16bfb

File tree

3 files changed

+3
-16
lines changed

3 files changed

+3
-16
lines changed

examples/bzlmod/MODULE.bazel.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

python/private/python_repositories.bzl

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -692,12 +692,7 @@ def python_register_toolchains(
692692
platform = platform,
693693
))
694694

695-
host_toolchain(
696-
name = name + "_host",
697-
python_version = python_version,
698-
user_repository_name = name,
699-
platforms = loaded_platforms,
700-
)
695+
host_toolchain(name = name + "_host")
701696

702697
toolchain_aliases(
703698
name = name,

python/private/toolchains_repo.bzl

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -314,14 +314,6 @@ toolchain_aliases repo because referencing the `python` interpreter target from
314314
this repo causes an eager fetch of the toolchain for the host platform.
315315
""",
316316
attrs = {
317-
"platforms": attr.string_list(
318-
doc = "List of platforms for which aliases shall be created",
319-
),
320-
"python_version": attr.string(doc = "The Python version."),
321-
"user_repository_name": attr.string(
322-
mandatory = True,
323-
doc = "The base name for all created repositories, like 'python38'.",
324-
),
325317
"_rule_name": attr.string(default = "host_toolchain"),
326318
"_rules_python_workspace": attr.label(default = Label("//:WORKSPACE")),
327319
},

0 commit comments

Comments
 (0)