Skip to content

Commit ec4066b

Browse files
authored
fix: skip network requests in report.getReport() (#118)
It is very slow in win32 environments and we don't need that info here Closes: #95
1 parent ebf9b9f commit ec4066b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/current-env.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@ function libc (osName) {
1919
return undefined
2020
}
2121
let family
22+
const originalExclude = process.report.excludeNetwork
23+
process.report.excludeNetwork = true
2224
const report = process.report.getReport()
25+
process.report.excludeNetwork = originalExclude
2326
if (report.header?.glibcVersionRuntime) {
2427
family = 'glibc'
2528
} else if (Array.isArray(report.sharedObjects) && report.sharedObjects.some(isMusl)) {

0 commit comments

Comments
 (0)