diff --git a/lib/manager/gomod/artifacts.js b/lib/manager/gomod/artifacts.js index 64ba77584ec36f9a480f18f9792ec7ec98ecb696..b5d3d05f7babbdac56bf733fb515bee9b94a5fa8 100644 --- a/lib/manager/gomod/artifacts.js +++ b/lib/manager/gomod/artifacts.js @@ -164,7 +164,7 @@ async function getArtifacts( seconds = Math.round(duration[0] + duration[1] / 1e9); logger.info({ seconds, stdout, stderr }, 'Vendored modules'); const status = await platform.getRepoStatus(); - for (const f of status.modified) { + for (const f of status.modified.concat(status.not_added)) { if (f.startsWith(vendorDir)) { const localModified = upath.join(config.localDir, f); res.push({ @@ -175,6 +175,14 @@ async function getArtifacts( }); } } + for (const f of status.deleted || []) { + res.push({ + file: { + name: '|delete|', + contents: f, + }, + }); + } } else { logger.warn( 'Vendor modules found - Renovate administrator should enable gitFs in order to update them'