Skip to content
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

Broken python target due to missing external repo #576

Open
z8v opened this issue Jul 16, 2024 · 0 comments
Open

Broken python target due to missing external repo #576

z8v opened this issue Jul 16, 2024 · 0 comments

Comments

@z8v
Copy link

z8v commented Jul 16, 2024

The python target relies on the @python repo which is not included in the dependencies.

Seems like we need a config option that will configure a python toolchain and make it available for the target.

Using the following MODULE.bazel file from the readme is enough to re-produce it, with an empty WORKSPACE and BUILD.bazel file.

# Boost
# Famous C++ library that has given rise to many new additions to the C++ Standard Library
# Makes @boost available for use: For example, add `@boost//:algorithm` to your deps.
# For more, see https://github.com/nelhage/rules_boost and https://www.boost.org
bazel_dep(name = "rules_boost", repo_name = "com_github_nelhage_rules_boost")
archive_override(
    module_name = "rules_boost",
    strip_prefix = "rules_boost-master",
    urls = "https://github.com/nelhage/rules_boost/archive/refs/heads/master.tar.gz",
    # It is recommended to edit the above URL and the below sha256 to point to a specific version of this repository.
    # integrity = "sha256-...",
)

non_module_boost_repositories = use_extension("@com_github_nelhage_rules_boost//:boost/repositories.bzl", "non_module_dependencies")
use_repo(
    non_module_boost_repositories,
    "boost",
)
$ bazel build @boost//:python
ERROR: no such package '@@[unknown repo 'python' requested from @@rules_boost~~non_module_dependencies~boost]//': The repository '@@[unknown repo 'python' requested from @@rules_boost~~non_module_dependencies~boost]' could not be resolved: No repository visible as '@python' from repository '@@rules_boost~~non_module_dependencies~boost'
...

Worth adding bazel build @boost//... on the CI as well when this is fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant