Homebrew on M1 uses /opt/homebrew as its installation prefix. As such, Kong Lua and C modules are installed under /opt/homebrew/lib/lua/5.1 and /opt/homebrew/share/lua/5.1/. This PR adds these paths to bin/kong with a brew formula patch and carries no undesirable side effect for brew Intel users (default paths for brew on Intel (under prefix /usr/local/) are already part of Lua's default path and cpath settings).
Homebrew on M1 uses
/opt/homebrew
as its installation prefix. As such, Kong Lua and C modules are installed under/opt/homebrew/lib/lua/5.1
and/opt/homebrew/share/lua/5.1/
. This PR adds these paths tobin/kong
with a brew formula patch and carries no undesirable side effect for brew Intel users (default paths for brew on Intel (under prefix/usr/local/
) are already part of Lua's default path and cpath settings).Fixes https://github.com/Kong/kong/issues/7705.