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

Repository Naming Conflict Between rules_jsonnet and rules_rust #228

Open
deblasis opened this issue Jan 15, 2025 · 0 comments · May be fixed by #229
Open

Repository Naming Conflict Between rules_jsonnet and rules_rust #228

deblasis opened this issue Jan 15, 2025 · 0 comments · May be fixed by #229

Comments

@deblasis
Copy link

What

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.

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

Successfully merging a pull request may close this issue.

1 participant