Using 'all' or './...' pseudotarget uses go mod dir
This commit is contained in:
4
dist/index.js
vendored
4
dist/index.js
vendored
@@ -75,9 +75,9 @@ function main() {
|
||||
const directDeps = yield (0, process_1.processGoDirectDependencies)(goModDir, goBuildTarget);
|
||||
const indirectDeps = yield (0, process_1.processGoIndirectDependencies)(goModDir, goBuildTarget);
|
||||
const packageCache = yield (0, process_1.processGoGraph)(goModDir, directDeps, indirectDeps);
|
||||
// no file path if using the pseudotargets "all" or "./..."
|
||||
// if using the pseudotargets "all" or "./...", use the goModDir as filepath
|
||||
const filepath = goBuildTarget === 'all' || goBuildTarget === './...'
|
||||
? undefined
|
||||
? goModDir
|
||||
: path_1.default.join(goModDir, goBuildTarget);
|
||||
const manifest = new dependency_submission_toolkit_1.Manifest(goBuildTarget, filepath);
|
||||
directDeps.forEach((pkgUrl) => {
|
||||
|
||||
2
dist/index.js.map
vendored
2
dist/index.js.map
vendored
File diff suppressed because one or more lines are too long
@@ -51,10 +51,10 @@ async function main () {
|
||||
goBuildTarget
|
||||
)
|
||||
const packageCache = await processGoGraph(goModDir, directDeps, indirectDeps)
|
||||
// no file path if using the pseudotargets "all" or "./..."
|
||||
// if using the pseudotargets "all" or "./...", use the goModDir as filepath
|
||||
const filepath =
|
||||
goBuildTarget === 'all' || goBuildTarget === './...'
|
||||
? undefined
|
||||
? goModDir
|
||||
: path.join(goModDir, goBuildTarget)
|
||||
const manifest = new Manifest(goBuildTarget, filepath)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user