-
Notifications
You must be signed in to change notification settings - Fork 176
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to find package for @rules_python_internal//:rules_python_config.bzl: The repository '@rules_python_internal' could not be resolved: Repository '@rules_python_internal' is not defined. #872
Comments
This looks like a python problem. |
We're not using any rules_python like I said: |
Sure, but you are using other things. Everything you bring in to your WORKSPACE can impact what bzlmod resolves all the transitive dependencies too. Sometimes you just have to force things to specific versions in your project. |
So what rules_python version do you need to pkg_tar, just add it to you readme and I am happy to apply that workaround |
I see the python deps from the query: |
The one in MODULE.bazel or WORKSPACE should work. Probably everything newer than that does too. A reasonable practice for an end user is:
And then juggle that around until it works. But there are problems, because the add dependencies methods are sometimes written with If I were building a product with Bazel, I would use the workspace tools only to query out what I need, and explicitly specify the versions of every transitive module required. That way I know that updating, for example, rules_python, won't change the version of rules_proto that I use. |
My 2 cents, git_repository(
name = "rules_python",
tag = "0.31.0",
remote = "https://github.com/bazelbuild/rules_python.git",
)
# if missing it will trig the error message of the OP
load("@rules_python//python:repositories.bzl", "py_repositories")
py_repositories() |
WORKSPACE:
//src/bootstrap/cloud/BUILD:
Error:
We're not using any rules_python in the repo. This issue is blocking googlecloudrobotics/core#373
The text was updated successfully, but these errors were encountered: