You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update rule_python add the python_repositories() load/deps
Any use of rules_python (or python toolchain specifically) throws an error
🔬 Minimal Reproduction
🔥 Exception or Error
$ bazel build @python3_10_x86_64-unknown-linux-gnu//:filesINFO: Invocation ID: f72be4ff-6c63-486c-871d-0bf2056ac90aERROR: Traceback (most recent call last): File "/home/worker/.cache/bazel/_bazel_worker/f704bab1b165ed1368cb88f9f49e7532/external/python3_10_x86_64-unknown-linux-gnu/BUILD.bazel", line 9, column 16, in <toplevel> srcs = glob(Error in glob: empty segment not permittedERROR: Skipping '@python3_10_x86_64-unknown-linux-gnu//:files': no such target '@python3_10_x86_64-unknown-linux-gnu//:files': target 'files' not declared in package '' defined by /home/worker/.cache/bazel/_bazel_worker/f704bab1b165ed1368cb88f9f49e7532/external/python3_10_x86_64-unknown-linux-gnu/BUILD.bazel (Tip: use `query "@python3_10_x86_64-unknown-linux-gnu//:*"` to see all the targets in that package)WARNING: Target pattern parsing failed.ERROR: no such target '@python3_10_x86_64-unknown-linux-gnu//:files': target 'files' not declared in package '' defined by /home/worker/.cache/bazel/_bazel_worker/f704bab1b165ed1368cb88f9f49e7532/external/python3_10_x86_64-unknown-linux-gnu/BUILD.bazel (Tip: use `query "@python3_10_x86_64-unknown-linux-gnu//:*"` to see all the targets in that package)INFO: Elapsed time: 0.819sINFO: 0 processes.FAILED: Build did NOT complete successfully (0 packages loaded)
🐞 bug report
Affected Rule
Trying to use rules_python at all is causing this error - but the following targets the problematic rule:
$ bazel build @python3_10_x86_64-unknown-linux-gnu//:files
Is this a regression?
Current working version is 0.16.2
Description
Update
rule_python
add thepython_repositories()
load/depsAny use of
rules_python
(or python toolchain specifically) throws an error🔬 Minimal Reproduction
🔥 Exception or Error
🌍 Your Environment
Operating System:
Linux
Output of
bazel version
:The text was updated successfully, but these errors were encountered: