Add JS bundles
This commit is contained in:
Vendored
+5
-4
@@ -259,13 +259,14 @@ function processGoGraph(goModDir, directDependencies, indirectDependencies) {
|
|||||||
* build target list. Go does not support multiple versions of the same
|
* build target list. Go does not support multiple versions of the same
|
||||||
* package */
|
* package */
|
||||||
const matches = cache.packagesMatching(matcher);
|
const matches = cache.packagesMatching(matcher);
|
||||||
console.log('matcher:', matcher, 'parentPkg:', parentPkg, 'childPkg:', childPkg);
|
if (matches.length === 0)
|
||||||
|
return;
|
||||||
if (matches.length !== 1) {
|
if (matches.length !== 1) {
|
||||||
throw new Error('assertion failed: expected one package in cache with namespace+name. ' +
|
throw new Error('assertion failed: expected no more than one package in cache with namespace+name. ' +
|
||||||
'Found: ' +
|
'Found: ' +
|
||||||
JSON.stringify(matches) +
|
JSON.stringify(matches) +
|
||||||
'\n' +
|
'for ' +
|
||||||
`matcher: ${matcher} parentPkg: ${parentPkg} childPkg: ${childPkg}`);
|
JSON.stringify(matcher));
|
||||||
}
|
}
|
||||||
// create the dependency relationship
|
// create the dependency relationship
|
||||||
targetPackage.dependsOn(matches[0]);
|
targetPackage.dependsOn(matches[0]);
|
||||||
|
|||||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user