From d06341b26b788521dd2a17da7acb75233cdde338 Mon Sep 17 00:00:00 2001 From: Lazar Bulovan Date: Sat, 18 Jul 2026 16:58:13 +0200 Subject: [PATCH] fix: resolve symlink in bin wrapper with readlink -f Mason's bin/ directory contains a symlink to the actual wrapper script in packages//bin/. The wrapper used $(dirname "$0") which resolved to mason/bin/ (the symlink location), then ../src/main.lua pointed to mason/src/main.lua which doesn't exist. Use readlink -f to resolve the symlink first, so dirname points to packages/tia-lsp/bin/ and ../src/main.lua correctly resolves to packages/tia-lsp/src/main.lua. --- packages/tia-lsp/package.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/tia-lsp/package.yaml b/packages/tia-lsp/package.yaml index 6ac9d7a..653009e 100644 --- a/packages/tia-lsp/package.yaml +++ b/packages/tia-lsp/package.yaml @@ -18,7 +18,7 @@ source: git clone --depth 1 --branch "v$VERSION" https://gitea.l-tech.rs/lazar/tia-lsp.git tia-lsp-src cp -r tia-lsp-src/src ./src mkdir -p bin - printf '#!/bin/bash\nexec lua "$(dirname "$0")/../src/main.lua" "$@"\n' > bin/tia-lsp + printf '#!/bin/bash\nexec lua "$(dirname "$(readlink -f "$0")")/../src/main.lua" "$@"\n' > bin/tia-lsp chmod +x bin/tia-lsp bin: