leafo / lapis

A web framework for Lua and OpenResty written in MoonScript
http://leafo.net/lapis/
MIT License
3.14k stars 247 forks source link

Missing deps #757

Closed the-man-with-a-golden-mind closed 1 year ago

the-man-with-a-golden-mind commented 2 years ago

On Mac (M1 proc) when I am trying to make an migration I am getting an error: Error: module 'bit' not found: no field package.preload['bit'] no file '/Users/michalmajchrzak/.luarocks/share/lua/5.1/bit.lua' no file '/Users/michalmajchrzak/.luarocks/share/lua/5.1/bit/init.lua' no file './bit.lua' no file '/opt/homebrew/share/lua/5.1/bit.lua' no file '/opt/homebrew/share/lua/5.1/bit/init.lua' no file '/opt/homebrew/lib/lua/5.1/bit.lua' no file '/opt/homebrew/lib/lua/5.1/bit/init.lua' no file '/Users/michalmajchrzak/.luarocks/lib/lua/5.1/bit.so' no file './bit.so' no file '/opt/homebrew/lib/lua/5.1/bit.so' no file '/opt/homebrew/lib/lua/5.1/loadall.so'

it looks that Lapis doesn't have "luabitop" as a dependency.

leafo commented 2 years ago

This dependency comes from pgmoon, check here: https://github.com/leafo/pgmoon#dependencies

the-man-with-a-golden-mind commented 2 years ago

I see. I just can not install that deps on my Mac M1. I have timeout no matter what. Strange. That missing lib is the only lib where I have such timeout ( no matter from the timeout which I am setting up in luarocks). And the timeout is on the GitHub side. Maybe it is missing?

sob., 29 paź 2022, 11:21 użytkownik leaf @.***> napisał:

This dependency comes from pgmoon, check here: https://github.com/leafo/pgmoon#dependencies

— Reply to this email directly, view it on GitHub https://github.com/leafo/lapis/issues/757#issuecomment-1295781690, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABLZAUCLO4JPRBL5QFJWUNDWFTUB5ANCNFSM6AAAAAARGA3IJU . You are receiving this because you authored the thread.Message ID: @.***>

leafo commented 1 year ago

Because pgmoon is designed to run in many different kind of environments, it does not install any dependencies aside from lpeg by default, you are responsible for installing them depending on the environment you wish to run it in.