snyk-go-plugin
Advanced tools
Comparing version 1.3.0 to 1.3.1
@@ -93,3 +93,3 @@ var fs = require('fs'); | ||
function isRootSubpkg(pkgPath, projectRootPath) { | ||
function isProjSubpackage(pkgPath, projectRootPath) { | ||
if (pkgPath == projectRootPath) { | ||
@@ -124,2 +124,3 @@ return true; | ||
var isRoot = (fromPath.length == 0); | ||
var isProjSubpkg = isProjSubpackage(goDepsTree.Dir, projectRootPath); | ||
@@ -130,4 +131,7 @@ var pkg = { | ||
} | ||
if (!isRoot && isProjSubpkg) { | ||
pkg._isProjSubpkg = true; | ||
} | ||
if (isRoot || isRootSubpkg(goDepsTree.Dir, projectRootPath)) { | ||
if (isRoot || isProjSubpkg) { | ||
pkg.version = '0.0.0'; | ||
@@ -142,3 +146,3 @@ } else if (!lockedVersions[pkg.name]) { | ||
pkg.from = fromPath; | ||
if (!isInternalPackage(pkg.name)) { | ||
if (isRoot || (!isInternalPackage(pkg.name) && !isProjSubpkg)) { | ||
pkg.from = pkg.from.concat(pkg.name + '@' + pkg.version) | ||
@@ -151,3 +155,3 @@ } | ||
if (isInternalPackage(child.name)) { | ||
if (isInternalPackage(child.name) || child._isProjSubpkg) { | ||
Object.keys(child.dependencies).forEach(function (grandChildName) { | ||
@@ -154,0 +158,0 @@ pkg.dependencies[grandChildName] = child.dependencies[grandChildName]; |
@@ -27,3 +27,3 @@ { | ||
}, | ||
"version": "1.3.0" | ||
"version": "1.3.1" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
14538
211