On Thu, Jun 25, 2015 at 11:11 AM, Thijs Schreijer <[email protected]> wrote: >> -----Original Message----- >> From: Fabio Porcedda [mailto:[email protected]] >> Sent: donderdag 25 juni 2015 6:04 >> To: [email protected] >> Subject: Re: [Luarocks-developers] Use an environment variable inside the >> config-5.1.lua >> >> On Tue, Jun 16, 2015 at 7:40 PM, Thijs Schreijer >> <[email protected]> wrote: >> >> > Hisham <h@hi...> >> >> > We could add getenv support in the next release (as usual, patches are >> >> welcome). >> >> >> >> That would be great! >> >> Unfortunately I don't know the source of luarocks but if i get some >> >> hint maybe i can try to do something. >> >> >> > >> > I just submitted a pull request for this. Please check it out. >> >> It works! Thanks a lot. >> >> It seems to works only if i use the LUAROCKS_CONFIG=<> environment >> variable. If the config file is read from --sysconfigdir=<cfgdir> >> <cfgdir>/config-5.1.lua something goes wrong, even if the dump_env() >> function tell me that the environment variable was read the >> configuration data seems not be used by luarocks. >> >> Do you have any idea? >> >> Thanks >> -- >> Fabio Porcedda >> > > That PR was merged, but introduced a new bug. Can you try this PR (which is > supposed to fix that); > https://github.com/keplerproject/luarocks/pull/397
Now everything seems to work fine. Thanks -- Fabio Porcedda ------------------------------------------------------------------------------ Monitor 25 network devices or servers for free with OpManager! OpManager is web-based network management software that monitors network devices and physical & virtual servers, alerts via email & sms for fault. Monitor 25 devices for free with no restriction. Download now http://ad.doubleclick.net/ddm/clk/292181274;119417398;o _______________________________________________ Luarocks-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/luarocks-developers
