Skip to content

Commit

Permalink
fix: skip network requests in report.getReport() (#118)
Browse files Browse the repository at this point in the history
It is very slow in win32 environments and we don't need that info here

Closes: #95
  • Loading branch information
wraithgar authored Sep 11, 2024
1 parent ebf9b9f commit ec4066b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/current-env.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@ function libc (osName) {
return undefined
}
let family
const originalExclude = process.report.excludeNetwork
process.report.excludeNetwork = true
const report = process.report.getReport()
process.report.excludeNetwork = originalExclude
if (report.header?.glibcVersionRuntime) {
family = 'glibc'
} else if (Array.isArray(report.sharedObjects) && report.sharedObjects.some(isMusl)) {
Expand Down

0 comments on commit ec4066b

Please sign in to comment.