Skip to content
Snippets Groups Projects
Commit 805ed25d authored by Rhys Arkins's avatar Rhys Arkins
Browse files

fix(gomod): another rethinkdb/rethinkdb-go.v5 exception

parent d20f64ad
No related branches found
No related tags found
No related merge requests found
...@@ -9,7 +9,10 @@ function updateDependency(currentFileContent, upgrade) { ...@@ -9,7 +9,10 @@ function updateDependency(currentFileContent, upgrade) {
logger.debug(`gomod.updateDependency: ${upgrade.newValue}`); logger.debug(`gomod.updateDependency: ${upgrade.newValue}`);
const lines = currentFileContent.split('\n'); const lines = currentFileContent.split('\n');
const lineToChange = lines[upgrade.lineNumber]; const lineToChange = lines[upgrade.lineNumber];
if (!lineToChange.includes(upgrade.depName)) { if (
!lineToChange.includes(upgrade.depName) &&
!lineToChange.includes('rethinkdb/rethinkdb-go.v5')
) {
return null; return null;
} }
let requireLine; let requireLine;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment