Add debug logging

This commit is contained in:
Lane Seppala
2022-06-17 13:17:17 -06:00
parent be130df09a
commit 79efc0977a
3 changed files with 11 additions and 1 deletions
+1
View File
@@ -259,6 +259,7 @@ function processGoGraph(goModDir, directDependencies, indirectDependencies) {
* build target list. Go does not support multiple versions of the same
* package */
const matches = cache.packagesMatching(matcher);
console.log('matcher:', matcher, 'parentPkg:', parentPkg, 'childPkg:', childPkg);
if (matches.length !== 1) {
throw new Error('assertion failed: expected one package in cache with namespace+name. ' +
'Found: ' +
+1 -1
View File
File diff suppressed because one or more lines are too long
+9
View File
@@ -50,6 +50,15 @@ export async function processGoGraph (
* build target list. Go does not support multiple versions of the same
* package */
const matches = cache.packagesMatching(matcher)
console.log(
'matcher:',
matcher,
'parentPkg:',
parentPkg,
'childPkg:',
childPkg
)
if (matches.length !== 1) {
throw new Error(
'assertion failed: expected one package in cache with namespace+name. ' +