You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using rules_jsonnet in a module that also uses rules_rust, there is a naming conflict for the rust host tools repository. This results in a build error due to duplicate repository generation.
Error Message
/home/alessandro/.cache/bazel/_bazel_alessandro/021a5c0c80bf58415e04c5348602bbf1/external/rules_rust+/rust/extensions.bzl:262:44: Traceback (most recent call last):
File "/home/alessandro/.cache/bazel/_bazel_alessandro/021a5c0c80bf58415e04c5348602bbf1/external/rules_rust+/rust/extensions.bzl", line 262, column 44, in _rust_host_tools_impl
rust_toolchain_tools_repository(
Error in repository_rule: A repo named rust_host_tools is already generated by this module extension at /home/alessandro/.cache/bazel/_bazel_alessandro/021a5c0c80bf58415e04c5348602bbf1/external/rules_rust+/rust/extensions.bzl:262:44
Proposed Solution
The fix requires specifying a unique repository name for the rust host tools in rules_jsonnet to avoid the naming conflict. A PR will be submitted shortly with this change.
The text was updated successfully, but these errors were encountered:
What
When using
rules_jsonnet
in a module that also usesrules_rust
, there is a naming conflict for the rust host tools repository. This results in a build error due to duplicate repository generation.Error Message
Proposed Solution
The fix requires specifying a unique repository name for the rust host tools in rules_jsonnet to avoid the naming conflict. A PR will be submitted shortly with this change.
The text was updated successfully, but these errors were encountered: