Skip to content

Commit

Permalink
chore(npm): Ignore the log file error message of NPM stderr output
Browse files Browse the repository at this point in the history
Signed-off-by: Marcel Bochtler <[email protected]>
  • Loading branch information
MarcelBochtler committed Dec 16, 2024
1 parent cada562 commit c84b225
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion plugins/package-managers/node/src/main/kotlin/npm/Npm.kt
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,13 @@ private fun ModuleInfo.getNonDeduplicatedModuleInfosForId(): Map<String, ModuleI
}

internal fun List<String>.groupLines(vararg markers: String): List<String> {
val ignorableLinePrefixes = setOf("code ", "errno ", "path ", "syscall ")
val ignorableLinePrefixes = setOf(
"A complete log of this run can be found in: ",
"code ",
"errno ",
"path ",
"syscall "
)
val singleLinePrefixes =
setOf("deprecated ", "invalid: ", "missing: ", "skipping integrity check for git dependency ")
val minCommonPrefixLength = 5
Expand Down

0 comments on commit c84b225

Please sign in to comment.