Lua-resty-auto-ssl: Deploy an OPM package?

Created on 10 Feb 2017  ·  9Comments  ·  Source: auto-ssl/lua-resty-auto-ssl

According to the LuaRocks page, its use is now discouraged:

http://openresty.org/en/using-luarocks.html

Would you be interested in releasing an OPM package also? :)

enhancement

Most helpful comment

Maybe mention all this briefly in the readme? I'm thinking everyone who takes a closer look at lua-resty-auto-ssl will get slightly confused about using LuaRocks, although deprecated — slightly gave me the incorrect impression that lua-resty-auto-ssl wasn't being kept up-to-date. And not everyone will find this discussion and explanation.

Example:

Requirements:
...
LuaRocks (LuaRocks is deprecated, but OpenResty's new package manager, OPM, cannot currently compile C components)

All 9 comments

I'm interested in publishing to OPM (I've published my other lua-resty module to OPM), but lua-resty-auto-ssl's installation process currently builds the C library sockproc, and OPM doesn't yet support compiling C components (although it's on their TODO list): https://github.com/openresty/opm/issues/30

So I had been waiting on support for building C things to land in OPM before publishing lua-resty-auto-ssl to OPM.

That being said, we could technically publish lua-resty-auto-ssl to OPM, but without sockproc. You'd then have to manually build and install sockproc yourself, so I'm not sure it would be more convenient. But let me know if that seems preferable.

I don't really have an opinion either way. I found the luarocks method easy enough :)

It was just the warning message on the openresty website that prompted me to ask :) This can probably serve as an answer to others in the meantime until OPM supports everything you need.

Since OPM seems to be the direction openresty itself is moving, we should keep this open as a tracking bug. But can't actually implement anything until the C support in OPM is done.

Any idea when this might be done? Is the best way in the meantime to install manually?

@byrnedo: Using LuaRocks is still the preferred installation method for lua-resty-auto-ssl. Until OPM has C support, there's still various things, like lua-resty-auto-ssl, that can't be installed via OPM. So while OpenResty prefers OPM these days, LuaRocks still works great and is still the de facto package manager actively supported by the broader Lua community.

But since LuaRocks doesn't come bundled with OpenResty, you will need to install it first: http://openresty.org/en/using-luarocks.html#install-luarocks

Thanks for the explanation. I'll go with lua-rocks then!

On 1 October 2017 at 16:07, Nick Muerdter notifications@github.com wrote:

@byrnedo https://github.com/byrnedo: Using LuaRocks is still the
preferred installation method for lua-resty-auto-ssl. Until OPM has C
support, there's still various things, like lua-resty-auto-ssl, that can't
be installed via OPM. So while OpenResty prefers OPM these days, LuaRocks
still works great and is still the de facto package manager actively
supported by the broader Lua community.

But since LuaRocks doesn't come bundled with OpenResty, you will need to
install it first: http://openresty.org/en/using-
luarocks.html#install-luarocks


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/GUI/lua-resty-auto-ssl/issues/45#issuecomment-333378971,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AFRbqw-FF17aH5uX0VHI-ZfApaDITgmpks5sn5yEgaJpZM4L81DQ
.

But since LuaRocks doesn't come bundled with OpenResty, you will need to install it first: http://openresty.org/en/using-luarocks.html#install-luarocks

This is discouraged by openresty and I am just wondering if still using the luarock would have any implications?

It shouldn't. It works fine for me in my production environment. I think it's discouraged because they want to shift people to OPM packages.

Maybe mention all this briefly in the readme? I'm thinking everyone who takes a closer look at lua-resty-auto-ssl will get slightly confused about using LuaRocks, although deprecated — slightly gave me the incorrect impression that lua-resty-auto-ssl wasn't being kept up-to-date. And not everyone will find this discussion and explanation.

Example:

Requirements:
...
LuaRocks (LuaRocks is deprecated, but OpenResty's new package manager, OPM, cannot currently compile C components)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

arya6000 picture arya6000  ·  11Comments

sahildeliwala picture sahildeliwala  ·  16Comments

jasonbouffard picture jasonbouffard  ·  6Comments

ronaldgrn picture ronaldgrn  ·  8Comments

kshnurov picture kshnurov  ·  3Comments