Skip to content

Commit fe18306

Browse files
StuporHeroclaude
andauthored
fix(vendir): remove registryUrls from git-refs dependencies (renovatebot#40938)
* fix(vendir): remove registryUrls from git-refs dependencies The git-refs datasource does not support custom registries (customRegistrySupport = false). Setting registryUrls on git dependencies causes a spurious warning in the Renovate dashboard: 'Custom registries are not allowed for this datasource.' This removes the registryUrls property from extractGitSource since the git URL is already captured in depName and packageName. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * fix(vendir): remove redundant packageName from git-refs dependencies Co-Authored-By: Claude <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
1 parent f4d78ac commit fe18306

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/modules/manager/vendir/extract.spec.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ describe('modules/manager/vendir/extract', () => {
7575
{
7676
currentValue: '7.10.1',
7777
depName: 'https://github.com/test/test',
78-
packageName: 'https://github.com/test/test',
78+
depType: 'GitSource',
7979
datasource: 'git-refs',
8080
},
8181
{
@@ -86,6 +86,8 @@ describe('modules/manager/vendir/extract', () => {
8686
},
8787
],
8888
});
89+
// git-refs datasource does not support custom registries
90+
expect(result?.deps[4].registryUrls).toBeUndefined();
8991
});
9092
});
9193
});

lib/modules/manager/vendir/extract.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,8 @@ export function extractGitSource(
5353
const httpUrl = getHttpUrl(gitSource.url);
5454
return {
5555
depName: httpUrl,
56-
packageName: httpUrl,
5756
depType: 'GitSource',
5857
currentValue: gitSource.ref,
59-
registryUrls: [httpUrl],
6058
datasource: GitRefsDatasource.id,
6159
};
6260
}

0 commit comments

Comments
 (0)