Hi Thibault,
Seems like this can easily be done by a Lua (opm) module library
instead? It does not have to be in the core, it seems.
Regards,
Yichun
On Thu, Feb 15, 2018 at 11:52 AM, Thibault Charbonnier
<thiba...@fastmail.com> wrote:
> I was thinking recently of contributing something like:
>
> ngx.get_deps_versions()
>
> Which would return a table containing the version of each dependency
> currently bundled/in the LUA_PATH/LUA_CPATH environment
> (NGINX/ngx_lua/lua-resty-core/lua-resty-lrucache/lua-resty-redis, etc...).
>
> On top of this, we can add a resty-cli flag, like so:
>
> resty --versions
>
> Which would consume this API and output a nice list on stdout of what the
> users can expect from their current OpenResty installation, as in:
>
> $ resty --versions
> nginx core: 1.13.6
> ngx_lua: v0.10.12rc
> resty-core: v0.1.14rc1
> ...
>
> There could probably be better names for both this API and the resty-cli
> flag.
>
> This would be particularly useful for developers when reading the module's
> APIs documentation stating things like: "this API was introduced in release
> x.y.z of this module".
>
> I sometimes do this manually like so:
>
> resty -e 'print("NGINX: ", ngx.config.nginx_version, "\nngx_lua: ",
> ngx.config.ngx_lua_version, "\nlua-resty-core: ",
> require("resty.core").version)'
>
> But this would make this more obvious and natural to users.
>
> Is this a stupid idea?
>
> Thibault
>
>
> On 2/15/18 11:43 AM, Yichun Zhang (agentzh) wrote:
>>
>> Hello!
>>
>> OpenResty's official binary packages are updated upon every formal
>> release. So I don't think it needs the trouble to always list the
>> package versions on the web site. If the binary packages are not
>> built, please file an issue here:
>>
>> https://github.com/openresty/openresty-packaging/issues
>>
>> Thanks!
>>
>> Best regards,
>> Yichun
>>
>> On Tue, Feb 13, 2018 at 11:14 PM, <jon...@findmeon.com> wrote:
>>>
>>> FYI, there is no info on the openresty website about what version the
>>> current packages are built with.
>>>
>>> it looks like everything is current, so I can migrate from my source
>>> version
>>> to a binary on this upload -- but it would be nice to actually list the
>>> versions for the packages on the site..