mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-12 06:56:24 +00:00
fix(gomod): rename gorethink rethinkdb
This commit is contained in:
parent
f89ee685a4
commit
ab45c544bb
1 changed files with 5 additions and 0 deletions
|
@ -41,6 +41,11 @@ function updateDependency(currentFileContent, upgrade) {
|
||||||
if (upgrade.depName.startsWith('gopkg.in/')) {
|
if (upgrade.depName.startsWith('gopkg.in/')) {
|
||||||
const oldV = upgrade.depName.split('.').pop();
|
const oldV = upgrade.depName.split('.').pop();
|
||||||
newLine = newLine.replace(`.${oldV}`, `.v${upgrade.newMajor}`);
|
newLine = newLine.replace(`.${oldV}`, `.v${upgrade.newMajor}`);
|
||||||
|
// Package renames - I couldn't think of a better place to do this
|
||||||
|
newLine = newLine.replace(
|
||||||
|
'gorethink/gorethink.v5',
|
||||||
|
'rethinkdb/rethinkdb-go.v5'
|
||||||
|
);
|
||||||
} else if (
|
} else if (
|
||||||
upgrade.newMajor > 1 &&
|
upgrade.newMajor > 1 &&
|
||||||
!newLine.includes(`/v${upgrade.newMajor}`)
|
!newLine.includes(`/v${upgrade.newMajor}`)
|
||||||
|
|
Loading…
Reference in a new issue