From bfd34b1e1108bdb518d840e288a0ae3962ce474e Mon Sep 17 00:00:00 2001 From: TJ Kolleh Date: Sun, 5 Apr 2026 17:42:16 -0400 Subject: [PATCH] fix(ci): export local lux build dependencies to PATH natively This fixes the 'luastatic: command not found' error by correctly exposing the lux build dependencies directly to the PATH in justfile, rather than using the 'lx exec' wrapper which doesn't support executing build dependencies. --- justfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/justfile b/justfile index 5607d8e..904db7c 100644 --- a/justfile +++ b/justfile @@ -41,6 +41,9 @@ lua_prefix := env('LUA_PREFIX', if os() == "macos" { `brew --prefix lua` } else lua_version := env('LUA_VERSION', if os() == "macos" { "5.5" } else { "5.4" }) +# Add lux build dependencies to PATH so luastatic can be found automatically +export PATH := absolute_path(".lux/" + lua_version + "/build_dependencies/" + lua_version + "/bin") + ":" + env_var('PATH') + # Include path for Lua development headers (override with LUA_INCLUDE env var) lua_include := env('LUA_INCLUDE', lua_prefix / ("include/lua" + lua_version)) @@ -153,7 +156,7 @@ build-system: prep [private] compile: @echo "Compiling standalone binary..." - cd lua && lx --lua-version {{ lua_version }} exec -- luastatic ../bin/spin.lua \ + cd lua && luastatic ../bin/spin.lua \ roda/init.lua roda/spinners.lua roda/ansi.lua roda/symbols.lua roda/util.lua roda/argp.lua \ ../{{ build_dir / 'libluv.a' }} ../{{ build_dir / 'libuv.a' }} ../{{ build_dir / 'libsystem.a' }} {{ lua_lib }} \ -I{{ lua_include }} && \