-
-
Notifications
You must be signed in to change notification settings - Fork 610
Closed
Description
🐞 bug report
Affected Rule
The issue is caused by the rule: python_register_toolchainsIs this a regression?
Yes, the previous version in which this bug was not present was: 0.40.0Description
A clear and concise description of the problem...Our existing Python toolchain registration WORKSPACE setup follows the docs at https://rules-python.readthedocs.io/en/latest/toolchains.html#workspace-toolchain-registration. This code no longer works in the latest rules_python release because the symbol cannot be found.
🔬 Minimal Reproduction
# WORKSPACE
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_python",
sha256 = "4f7e2aa1eb9aa722d96498f5ef514f426c1f55161c3c9ae628c857a7128ceb07",
strip_prefix = "rules_python-1.0.0",
url = "https://github.com/bazelbuild/rules_python/releases/download/1.0.0/rules_python-1.0.0.tar.gz",
)
load("@rules_python//python:repositories.bzl", "py_repositories")
py_repositories()
load("@rules_python//python:repositories.bzl", "python_register_toolchains")
python_register_toolchains(
name = "python_3_11",
# Available versions are listed in @rules_python//python:versions.bzl.
# We recommend using the same version your team is already standardized on.
python_version = "3.11",
)
load("@python_3_11//:defs.bzl", "interpreter")
> bazel fetch --noenable_bzlmod
🔥 Exception or Error
load("@python_3_11//:defs.bzl", "interpreter")
Error: file '@project_python//:defs.bzl' does not contain symbol 'interpreter'
🌍 Your Environment
Operating System:
Ubuntu 22.04 (GCP Docker)
Output of bazel version
:
7.4.1
Rules_python version:
1.0.0
Anything else relevant?
Metadata
Metadata
Assignees
Labels
No labels