Skip to content

Commit

Permalink
gomod: Only run go mod tidy once after vendor
Browse files Browse the repository at this point in the history
  • Loading branch information
chancez committed May 22, 2024
1 parent 4a0ec6c commit 29a70a0
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
4 changes: 0 additions & 4 deletions lib/modules/manager/gomod/artifacts.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -268,10 +268,6 @@ describe('modules/manager/gomod/artifacts', () => {
cmd: 'go mod tidy',
options: { cwd: '/tmp/github/some/repo' },
},
{
cmd: 'go mod tidy',
options: { cwd: '/tmp/github/some/repo' },
},
]);
});

Expand Down
5 changes: 0 additions & 5 deletions lib/modules/manager/gomod/artifacts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -285,11 +285,6 @@ export async function updateArtifacts({
args = 'mod vendor';
logger.debug('go mod tidy command included');
execCommands.push(`${cmd} ${args}`);
if (isGoModTidyRequired) {
args = 'mod tidy' + tidyOpts;
logger.debug('go mod tidy command included');
execCommands.push(`${cmd} ${args}`);
}
}

// We tidy one more time as a solution for #6795
Expand Down

0 comments on commit 29a70a0

Please sign in to comment.