bazel-contrib / bcr-ui

Website for the Bazel Central Registry
https://registry.bazel.build
Apache License 2.0
15 stars 8 forks source link

MODULE.bazel files that use variable bindings show up weird in the UI #91

Open Wyverald opened 1 year ago

Wyverald commented 1 year ago

contrib_rules_jvm's MODULE.bazel contains this snippet:

bazel_dep(name = "protobuf", version = PROTOBUF_VERSION, repo_name = "com_google_protobuf")
...
bazel_dep(name = "rules_proto", version = "5.3.0-{}".format(PROTOBUF_VERSION))

At https://registry.bazel.build/modules/contrib_rules_jvm/0.18.0, it's displayed like the following:

image

This is obviously not that easy to fix properly. We could implement (partial) Starlark eval in JS, but that sounds like a lot of work. Nevertheless, I'm filing this issue for posterity.