You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
importplatformdefis_x86_64_musl():
is_x86_64=platform.processor() =='x86_64'# I don't know how to detect `musl` in another way.unknown_libc=platform.libc_ver()[0] ==''returnis_x86_64andunknown_libc
This fix would be essential for making pre-commit work with NodeJS hooks in a minimal Alpine container, where no toolchain is available to compile node from source. @adiroiban, your solution looks good. Would you mind if I turned it into a PR?
Activity
adiroiban commentedon Jan 6, 2023
Note that
sysconfig.get_config_var('HOST_GNU_TYPE')will not always help.at least not on Python 2.7 and not on void linux with musl.
I am detecting musl via
adiroiban commentedon Jan 6, 2023
Maybe something like this will do.
it works for me :)
skycaptain commentedon Dec 9, 2024
This fix would be essential for making pre-commit work with NodeJS hooks in a minimal Alpine container, where no toolchain is available to compile node from source. @adiroiban, your solution looks good. Would you mind if I turned it into a PR?
fix(nodeenv): detect musl regardless of the host triplet vendor
chore(release): bump nodeenv version to 1.11.0