Skip to content

Commit 061e32e

Browse files
committed
Bugfix - Infinite-sized source/bin ZIP if glob includes work root
1 parent 2515440 commit 061e32e

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

analyze.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,10 @@ async function prepareInputsZip(inputsGlob, targetFile) {
6363
let numWritten = 0
6464
const workingDir = process.cwd()
6565
for await (const file of inputFilesGlob.globGenerator()) {
66-
archive.file(makeRelative(workingDir, file))
66+
const relPath = makeRelative(workingDir, file)
67+
if (file == targetFile || relPath == targetFile) continue
68+
69+
archive.file(relPath)
6770
numWritten += 1
6871
}
6972
await archive.finalize()

0 commit comments

Comments
 (0)