Kong / homebrew-kong

:monkey: Homebrew tap for Kong
https://getkong.org
69 stars 30 forks source link

fix(m1) add /opt/homebrew prefix to path and cpath #184

Closed gszr closed 2 years ago

gszr commented 2 years ago

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).

Fixes https://github.com/Kong/kong/issues/7705.