bazelbuild / bazelbuild/rules_rust

vendor_remote_repository generated alias targets don't work

Open
#2,832 0 comments 0 reactions 0 assignees View on GitHub
bug crate-universe needs-triage
Dominant language
Starlark
Stars
843
Forks
651
Avg merge
2d 18h
Merged PRs (30d)
15

Description

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`.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.