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

Issue with @boost//:python - Unsupported Directly? #588

Open
pia-ai opened this issue Dec 4, 2024 · 0 comments
Open

Issue with @boost//:python - Unsupported Directly? #588

pia-ai opened this issue Dec 4, 2024 · 0 comments

Comments

@pia-ai
Copy link

pia-ai commented Dec 4, 2024

I am using @boost//:python, but I encountered the following error. Is @boost//:python not directly supported yet?

Error Message:
no such package '@@[unknown repo 'python' requested from @@rules_boost non_module_dependenciesboost]//': The repository '@@[unknown repo 'python' requested from @@rules_boost non_module_dependenciesboost]' could not be resolved: No repository visible as '@python' from repository '@@rules_boost non_module_dependenciesboost' and referenced by '@@rules_boost non_module_dependenciesboost//:python'

Here is my configuration in MODULE.bzl:

bazel_dep(name = "rules_boost", repo_name = "com_github_nelhage_rules_boost")
archive_override(
   module_name = "rules_boost",
   urls = "https://github.com/nelhage/rules_boost/archive/refs/heads/master.tar.gz",
   strip_prefix = "rules_boost-master",
   integrity = "sha256-psZHryOwPgbyaxv5jGnQIDSo+CswP49GqdlvpKrDyPw=",
)

non_module_boost_repositories = use_extension("@com_github_nelhage_rules_boost//:boost/repositories.bzl", "non_module_dependencies")
use_repo(
   non_module_boost_repositories,
   "boost",
)

BUILD file snippet:
...
deps = [
...
"@boost//:python",
],

Could anyone help clarify if there's a step I'm missing or if there's an issue with the current setup?

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