Skip to content

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

@pia-ai

Description

@pia-ai

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions