-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Description
The bundler
manager should not set registryUrls
when datasource=git-refs.
Discussed in #36873
Originally posted by manicmaniac July 7, 2025
How are you running Renovate?
A Mend.io-hosted app
If you're self-hosting Renovate, tell us which platform (GitHub, GitLab, etc) and which version of Renovate.
41.23.4
Please tell us more about your question or problem
Overview
Renovate emits the warning 'Custom registries are not allowed for this datasource and will be ignored' for Gemfiles that reference Git packages.
Details
This problem occurs both on the Mend.io-hosted app and with self-hosted Renovate.
The following repository is a minimal reproduction of the issue:
https://github.com/manicmaniac/renovate-bundler-warnings
My Gemfile and renovate.json look like the following:
# frozen_string_literal: true
source "https://rubygems.org"
gem 'danger', git: 'https://github.com/danger/danger.git', tag: '9.5.3'
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:recommended"
],
"npm": {
"enabled": false
}
}
In this environment, Renovate issues the following warning: 'Custom registries are not allowed for this datasource and will be ignored.'
$ npm install
$ GITHUB_COM_TOKEN="$(gh auth token)" LOG_LEVEL=info npx renovate --platform=local
INFO: Repository started (repository=local)
"renovateVersion": "41.23.4"
INFO: Dependency extraction complete (repository=local)
"stats": {
"managers": {"bundler": {"fileCount": 1, "depCount": 1}},
"total": {"fileCount": 1, "depCount": 1}
}
WARN: Custom registries are not allowed for this datasource and will be ignored (repository=local)
"datasource": "git-refs",
"registryUrls": ["https://rubygems.org"],
"defaultRegistryUrls": null,
"additionalRegistryUrls": undefined
INFO: Repository finished (repository=local)
"cloned": undefined,
"durationMs": 630
INFO: Renovate was run at log level "info". Set LOG_LEVEL=debug in environment variables to see extended debug logs.
This warning appears harmless, but it can be a bit distracting since it shows up on the Mend Renovate Dashboard like this.
⚠️ Repository problems
These problems occurred while renovating this repository.Custom registries are not allowed for this datasource and will be ignored
Logs (if relevant)
Logs
INFO: Repository started (repository=local)
"renovateVersion": "41.23.4"
INFO: Dependency extraction complete (repository=local)
"stats": {
"managers": {"bundler": {"fileCount": 1, "depCount": 1}},
"total": {"fileCount": 1, "depCount": 1}
}
WARN: Custom registries are not allowed for this datasource and will be ignored (repository=local)
"datasource": "git-refs",
"registryUrls": ["https://rubygems.org"],
"defaultRegistryUrls": null,
"additionalRegistryUrls": undefined
INFO: Repository finished (repository=local)
"cloned": undefined,
"durationMs": 630
INFO: Renovate was run at log level "info". Set LOG_LEVEL=debug in environment variables to see extended debug logs.