We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4751cb4 commit d2bba65Copy full SHA for d2bba65
lib/current-env.js
@@ -13,12 +13,8 @@ function cpu () {
13
return process.arch
14
}
15
16
-function libc (osName) {
17
- // this is to make it faster on non linux machines
18
- if (osName !== 'linux') {
19
- return undefined
20
- }
21
- let family
+let family
+if (os() === 'linux') {
22
const originalExclude = process.report.excludeNetwork
23
process.report.excludeNetwork = true
24
const report = process.report.getReport()
@@ -28,6 +24,11 @@ function libc (osName) {
28
} else if (Array.isArray(report.sharedObjects) && report.sharedObjects.some(isMusl)) {
29
25
family = 'musl'
30
26
27
+}
+function libc (osName) {
+ if (osName !== 'linux') {
+ return undefined
31
+ }
32
return family
33
34
0 commit comments