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

vendor_remote_repository generated alias targets don't work #2832

Open
ashi009 opened this issue Sep 4, 2024 · 0 comments
Open

vendor_remote_repository generated alias targets don't work #2832

ashi009 opened this issue Sep 4, 2024 · 0 comments

Comments

@ashi009
Copy link

ashi009 commented Sep 4, 2024

When set render_config(default_alias_rule = "opt") for vendor_remote_repository. The generated alias rules are not working with the following error:

ERROR: .../BUILD.bazel:254:12: error loading package '@@crate_index//': cannot load '@@crate_index//:alias_rules.bzl': no such file and referenced by '//...'

A closer look showed that the generated alias_rules.bzl is not included in the generated crate_index repo.

If I understood correctly, alias_rules.bzl contains no dynamically generated content, and could be directly referenced from rules_rust.

@ashi009 ashi009 changed the title vendor_remote_repository's alias targets doesn't work vendor_remote_repository generated alias targets don't work Sep 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants