diff --git a/lib/datasource/go.js b/lib/datasource/go.js index 4f06e132ccb9cb245ccda3e32d9a65ec6c7c202f..b2fae9f7750d67283322850f11de706f0e419e53 100644 --- a/lib/datasource/go.js +++ b/lib/datasource/go.js @@ -34,10 +34,10 @@ async function getSourcePurl(name) { new RegExp(`<meta name="go-source" content="${name}\\s+([^\\s]+)`) ); if (sourceMatch) { - const [, sourceUrl] = sourceMatch; - logger.debug({ depName: name, sourceUrl }, 'Go lookup sourceUrl'); - if (sourceUrl && sourceUrl.startsWith('https://github.com/')) { - return getGithubPurl(sourceUrl.replace('https://github.com/', '')); + const [, goSourceUrl] = sourceMatch; + logger.debug({ depName: name, goSourceUrl }, 'Go lookup source url'); + if (goSourceUrl && goSourceUrl.startsWith('https://github.com/')) { + return getGithubPurl(goSourceUrl.replace('https://github.com/', '')); } } else { logger.trace({ depName: name }, 'No go-source header found');