Skip to content

Bug: integration with com is broken #169

@artemsheinacn

Description

@artemsheinacn

Description

The integration with communication bazel module is broken in the current main branch. It worked before.

Error Occurrence Rate

Reproducible

How to reproduce

  1. Make a com_integration module with the following contents.
  2. .bazelversion
8.3.0
  1. .bazelrc
build --java_language_version=17
build --tool_java_language_version=17
build --java_runtime_version=remotejdk_17
build --tool_java_runtime_version=remotejdk_17

test --test_output=errors

common --registry=https://raw.githubusercontent.com/eclipse-score/bazel_registry/main/
common --registry=https://bcr.bazel.build

common --extra_toolchains=@score_gcc_x86_64_toolchain//:x86_64-linux-gcc_12.2.0-posix
common --extra_toolchains=@score_toolchains_rust//toolchains/ferrocene:ferrocene_x86_64_unknown_linux_gnu

# -------------------------------------------------------------------------------
# Config dedicated to host platform CPU:x86_64 and OS:Linux
# -------------------------------------------------------------------------------
build:x86_64-linux --platforms=@score_bazel_platforms//:x86_64-linux-gcc_12.2.0-posix
build:x86_64-linux --extra_toolchains=@score_gcc_x86_64_toolchain//:x86_64-linux-gcc_12.2.0-posix
build:x86_64-linux --extra_toolchains=@score_toolchains_rust//toolchains/ferrocene:ferrocene_x86_64_unknown_linux_gnu

# Communication integration
common --@score_baselibs//score/json:base_library=nlohmann
common --@score_baselibs//score/memory/shared/flags:use_typedshmd=False
common --@score_communication//score/mw/com/flags:tracing_library=@score_baselibs//score/analysis/tracing/generic_trace_library/stub_implementation
  1. MODULE.bazel
module(
    name = "com_integration",
    version = "0.0.0",
)

bazel_dep(name = "score_communication", version = "0.1.2")
local_path_override(
    module_name = "score_communication",
    path = "../communication",
)

# Doesn't matter if I include this one or not
#bazel_dep(name = "rules_doxygen", version = "2.6.1", dev_dependency = True)
  1. Update path in local_path_override to target your local communication module with the 7ba33a3 sha1 checkout.
  2. Run bazelisk build //...
    The error message I'm getting for such kind of integration:
ERROR: Error computing the main repository mapping: invalid label for module extension found at @@score_communication+//:MODULE.bazel:221:34: no repo visible as '@rules_doxygen' here

no matter if bazel_dep rules_doxygen is enabled or not in MODULE.bazel.

Supporting Information

No response

Classification

minor

Affected Version

0.5

Expected Closure Version

0.5

Category

  • Safety Related
  • Security Related

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions