mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-13 07:26:26 +00:00
fix(bazel): handling of non-github URLs in git_repository (#4407)
This commit is contained in:
parent
e0abae7cea
commit
66f10121f0
1 changed files with 7 additions and 4 deletions
|
@ -172,10 +172,13 @@ export function extractPackageFile(content: string): PackageFile | null {
|
||||||
if (commit) {
|
if (commit) {
|
||||||
dep.currentDigest = commit;
|
dep.currentDigest = commit;
|
||||||
}
|
}
|
||||||
const repo = parse(remote).substring('https://github.com/'.length);
|
const githubURL = parse(remote);
|
||||||
|
if (githubURL) {
|
||||||
|
const repo = githubURL.substring('https://github.com/'.length);
|
||||||
dep.datasource = 'github';
|
dep.datasource = 'github';
|
||||||
dep.lookupName = repo;
|
dep.lookupName = repo;
|
||||||
deps.push(dep);
|
deps.push(dep);
|
||||||
|
}
|
||||||
} else if (
|
} else if (
|
||||||
depType === 'go_repository' &&
|
depType === 'go_repository' &&
|
||||||
depName &&
|
depName &&
|
||||||
|
|
Loading…
Reference in a new issue