diff --git a/lib/manager/gomod/artifacts.js b/lib/manager/gomod/artifacts.js index 5ab787b8cb84bea4de92f8b8962b4e546303417b..ed0abd1c07ee078d1ad7c0d8bd102bebadb5ecf3 100644 --- a/lib/manager/gomod/artifacts.js +++ b/lib/manager/gomod/artifacts.js @@ -181,6 +181,19 @@ async function getArtifacts( ); } } + const finalGoModContent = (await fs.readFile( + localGoModFileName, + 'utf8' + )).replace(/\/\/ renovate-replace /g, ''); + if (finalGoModContent !== newGoModContent) { + logger.info('Found updated go.mod after go.sum update'); + res.push({ + file: { + name: goModFileName, + contents: finalGoModContent, + }, + }); + } return res; } catch (err) { logger.info({ err }, 'Failed to update go.sum');