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

Bazelmod: registryUrls should set only for datasource=bazel #34545

Open
rarkins opened this issue Feb 28, 2025 · 0 comments
Open

Bazelmod: registryUrls should set only for datasource=bazel #34545

rarkins opened this issue Feb 28, 2025 · 0 comments
Labels
manager:bazel-module priority-3-medium Default priority, "should be done" but isn't prioritised ahead of others

Comments

@rarkins
Copy link
Collaborator

rarkins commented Feb 28, 2025

Discussed in #33748

Originally posted by jeremy-muon January 22, 2025

How are you running Renovate?

Self-hosted Renovate

If you're self-hosting Renovate, tell us which platform (GitHub, GitLab, etc) and which version of Renovate.

GitHub, Renovate 11.0.0

Please tell us more about your question or problem

I'm running Renovate against Bazel repositories, using Bazel Modules and a custom registry (in addition to the Bazel central registry). I'm using git_override as described here.

When I run Renovate, I get an error where it tries and fails to retrieve commit information at this URL: https://bcr.bazel.build/api/v3/repos/$ORG/$REPO/commits?per_page=1, then shows "Error getting latest commit from GitHub repo".

It appears that this function is attempting to use https://bcr.bazel.build instead of https://github.com for some reason. I attempted to work around this by instead pointing at my own custom registry where I can forward to github.com, but it still looks for bcr.bazel.build. It seems as though apiBaseUrl should be api.github.com in this case?

Reproduction

https://github.com/jeremy-muon/renovate-bzlmod-git-override

@rarkins rarkins added manager:bazel-module priority-3-medium Default priority, "should be done" but isn't prioritised ahead of others labels Feb 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
manager:bazel-module priority-3-medium Default priority, "should be done" but isn't prioritised ahead of others
Projects
None yet
Development

No branches or pull requests

1 participant