From 3860e953cc0f4ac705cc8cfa412e53f9efb48b69 Mon Sep 17 00:00:00 2001 From: jdx <216188+jdx@users.noreply.github.com> Date: Thu, 28 Nov 2024 06:18:27 -0600 Subject: [PATCH] fix: always prefer glibc to musl in mise run (#3261) Fixes #2276 @autarch says this is a good idea, I suppose we will see --- packaging/standalone/install.envsubst | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/packaging/standalone/install.envsubst b/packaging/standalone/install.envsubst index 6c30b1994..e3a8b4f29 100644 --- a/packaging/standalone/install.envsubst +++ b/packaging/standalone/install.envsubst @@ -42,12 +42,11 @@ get_os() { get_arch() { musl="" - if type ldd >/dev/null 2>/dev/null; then - libc=$(ldd /bin/ls | grep 'musl' | head -1 | cut -d ' ' -f1) - if [ -n "$libc" ]; then - musl="-musl" - fi - fi + if [ "${MISE_GLIBC-}" = "1" ]; then + musl="" + elif [ "$(get_os)" = "linux" ]; then + musl="-musl" + fi arch="$(uname -m)" if [ "$arch" = x86_64 ]; then echo "x64$musl"