|
> Is the `lit install ... creationix/uv ...` redundant? I don't need that if I LuaRocks installed "luv" correct? This was just for the example.In luvi based apps (luvit and lit), the luv module is required as "uv", but in the luarocks land, it's "luv". Most modules published to lit assume the "uv" spelling. So this shim makes them continue to work even though we're using the luarocks version.
Actually, it's not redundant, as the article describes later on:
> The deps/uv.lua shim is literally nothing more than `return require 'luv'` that redirects any requires to the luarocks version
> Also why did we need LuaBitOpts installed. It is not used in any of the examples? If it is a dependency for luv why not include that in your LuaRocks dependency list?Again most luvit modules are written for luvit, which means luajit where the bit library is a built-in. But in this example we were using plain lua so we needed to add the bitop library manually on the luarocks side so that it would be compatible. It's not listed as a dependency since it's part of luajit normally.