Hello!
On Tue, Nov 4, 2014 at 6:21 AM, Aapo Talvensaari wrote:
> But this is not as neatly integrated with OpenResty. Luarocks doesn't nicely
> handle for example external dependencies to FFI bound C-libs.
Yes, I'm going to work on the luaresty command line utility for
package management in the OpenResty world. And I'd like to address
such issues in a clean and consistent way. Because "luaresty" does not
need to worry about non-OpenResty things, it could be much simplified.
And I'm going to run the site
luaresty.org to host OpenResty libraries
as well as OpenResty applications.
The "luaresty" utility may fall back to moonrocks (or luarocks)
automatically if a package is not found on
luaresty.org but on the
latter's.
> You
> never know what the dependencies of a Luarocks packages are.
For "luaresty", I'd like the author to explicitly specify the
dependencies. The
luaresty.org site may run some automatic dep
detection and report any issues to the authors (or users).
> Node.js has its own
> package management called npm that is used to manage Node modules.
Yes, I'll have a closer look at npm and borrows whatever good ideas
fitting OpenResty's needs :)
> I'm not sure how this mess is to be solved. Having a package manager solely
> for OpenResty would be one way to go.
After much thinking, I'd go that route if nothing else pops up :)
I meant to reuse leafo's moonrocks work. But I find it hard to miss
the chance to design something so important from scratch ;) Oh well, I
must say leafo has made great contributions, especially to OpenResty
:)
Also, as you can tell, I'm also a heavy Perl user and I do have strong
opinions after using of its CPAN for years :)
> Still, does this tool need to manage
> say client-side/browser libs as well. Would you like to package your
> lua-resty-* package that has client side lib/css/imgs as well in a same
> package?
Yes, I'd see complete web applications distributed via luaresty :)
In addition, I'd also like the capability of automatically generating
binary packages via "
luaresty.org" for popular package systems like
Debian and Yum.
> This is a really hard problem to solve. I think OpenResty needs something,
> npm equivalent of a thing. Where things just work.
I cannot agree more :)
> But it is easier to say
> than actually make it work. Do you want to enforce conventions?
Yes, I want to enforce conventions and consistency in a central place
like
luaresty.org. That way we can have a lot of interesting tools
built around it.
> Do you want
> to integrate this package manager with other OS package managers, and maybe
> with LuaRocks,
Yes, but just one-way directions, that is, to OS package manager, and
from LuaRocks.
> how do you manage the possible client side assets (a
> convention including nginx configuration to make them servable...)
>
We'll eventually figure out with help from everyone, including you of course :)
I hope the design work around luaresty is open to the whole community.
You opinion matters, as always :)
Best regards,
-agentzh