fix(ci): use absolute path for lua-language-server --configpath (#34)

Problem: --configpath is resolved relative to the workspace root passed
to --check (lua/), not CWD. So .luarc.json was looked up at lua/.luarc.json
and not found, leaving vim and jit as undefined globals.

Solution: expand to an absolute path with $(pwd) at shell invocation
time, matching what the GitHub CI action already does.
This commit is contained in:
Barrett Ruth 2026-03-04 14:33:25 -05:00 committed by GitHub
parent ec00648f7a
commit d4e7d8c2fd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -6,5 +6,5 @@ git ls-files '*.lua' | xargs nix develop --command selene --display-style quiet
nix develop --command prettier --check .
nix fmt
git diff --exit-code -- '*.nix'
nix develop --command lua-language-server --check lua/ --configpath .luarc.json --checklevel=Warning
nix develop --command lua-language-server --check lua/ --configpath "$(pwd)/.luarc.json" --checklevel=Warning
nix develop --command busted