BCR Module Indexing #29292
Replies: 5 comments 2 replies
-
|
Discovering modules from a given registry is a very simple task that can be handled by coding agents nowadays, so I prefer not to add more complexity to BCR and Bazel itself. |
Beta Was this translation helpful? Give feedback.
-
|
Are you talking about querying the git repository and looking in the modules folder from there? It might work for the public Github to access the BCR, although I'm not sure what Github's policy is of web requests from AI or whether they are likely to get rejected, rate limited or denied for lack of authentication. For private registries I don't think this will work, there doesn't appear to be a mapping from the registry itself to the git repository for the registry. It would also likely require authenticating with the source control site before being able to read the repository. Finally there isn't actually any guarantee that a registry has a git repo to query at all, the only requirement of the registry is that it hosts the files in a particular structure, with certain files like Implementing this functionality would actually make it easier for an agent to query a registry, by being able to request a single file that is in JSON format that an agent can parse very easily. Unless I'm missing another approach agents could use. |
Beta Was this translation helpful? Give feedback.
-
|
I see, yeah, the current Bazel registry setup allows checking if a module exists in BCR, but doesn't support discovering all available modules. |
Beta Was this translation helpful? Give feedback.
-
|
Copying my comments over from bazelbuild/proposals#416:
IMO we should put this file in the root directory -- it should be possible for a module named
this is my biggest concern with a proposal like this, so thanks for devoting a sizeable chunk of text to it. I have just one question regarding the merge driver etc setup: would it allow multiple PRs touching Say users A and B both submit a PR adding a new module, and both PRs change |
Beta Was this translation helpful? Give feedback.
-
|
As we need to make this an optional feature anyway, could we make this endpoint dynamic and not represent it in git? Any kind of extra churn for contributors should be avoided. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
This is the discussion for the "BCR Module Indexing" proposal.
Beta Was this translation helpful? Give feedback.
All reactions