From 6b55be7df2a57fcf9a0b2fbdce05cb871d25a738 Mon Sep 17 00:00:00 2001 From: Buddy Date: Mon, 14 Sep 2026 09:26:55 -0700 Subject: [PATCH] fix: support arm64 in install-lua-language-server get_arch() only handled x86_64, so arm64 machines failed with "unsupported architecture: arm64". Also switch the bin symlink to a wrapper script: lua-language-server locates main.lua relative to its own unresolved argv[0], so launching it through a symlinked executable (rather than a symlinked directory) made it fail to find main.lua. --- .../bin/executable_install-lua-language-server | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/dot_local/bin/executable_install-lua-language-server b/dot_local/bin/executable_install-lua-language-server index b3fdcf7..ac8b23b 100755 --- a/dot_local/bin/executable_install-lua-language-server +++ b/dot_local/bin/executable_install-lua-language-server @@ -13,12 +13,23 @@ main() ( extract_tarball "${URL}" "${DEST}/${VERSION}" set_current_link "${DEST}" "${VERSION}" - set_link "${XDG_BIN_HOME}/lua-language-server" "${DEST}" bin/lua-language-server + + # lua-language-server locates main.lua next to its own argv[0], without + # resolving symlinks, so it can't be launched through a symlinked + # executable (only a symlinked directory in the path works). Use a + # wrapper script instead of set_link. + cat >"${XDG_BIN_HOME}/lua-language-server" <&2 "unsupported architecture: $(uname -m)" exit 1