Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions packaging/standalone/install.envsubst
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,13 @@ 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
if [ "${MISE_INSTALL_MUSL-}" = "1" ] || [ "${MISE_INSTALL_MUSL-}" = "true" ]; then
musl="-musl"
else
libc=$(ldd /bin/ls | grep 'musl' | head -1 | cut -d ' ' -f1)
if [ -n "$libc" ]; then
musl="-musl"
fi
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Musl Variant Installation Ignored in Minimal Environments

The MISE_INSTALL_MUSL environment variable check is nested within the ldd availability check. This means it's ignored when ldd is unavailable, preventing users from explicitly forcing musl variants as intended, particularly in minimal environments.

Fix in Cursor Fix in Web

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That is intentional, cursor bot. Otherwise MISE_INSTALL_MUSL=1 would incorrectly force musl on macOS (which does not have ldd or a musl variant).

fi
fi
arch="$(uname -m)"
Expand Down
Loading