On Tue, Oct 16, 2012 at 5:48 PM, Mauricio Henrique Bomfim <[email protected]> wrote: > On Tue, Oct 16, 2012 at 4:20 PM, Hisham <[email protected]> wrote: >> On Thu, Oct 11, 2012 at 7:26 PM, Mauricio Henrique Bomfim >> <[email protected]> wrote: >>> There is some way to set the source of a dependency into a rockpeck? >>> >>> Something like: >>> >>> dependencies = { >>> sputnik = { source = "http://spu.tnik.org/rocks/galaxy" } >>> } >> >> No, the servers to be used are dependent on the user's configuration, >> not on the rockspec. >> >> If the user uses luarocks install >> --server=http://spu.tnik.org/rocks/galaxy <rock> >> >> it will try that server first, for each dependency. > > Thanks. > > I just tried put the complete rockspec address and it worked for me: > > dependencies = { > "http://sputnik.freewisdom.org/rocks/galaxy/sputnik-10.12.28-0.rockspec", > }
It did!? I can almost see how this would accidentally work in the code if the URL was parsed as a rock name and it was then passed to install.run(), but I think there's a search command in the way that would trap that. I also tried to stuff the URL into a dependencies table of a rockspec here to see what would happen and got this error: Error: Parse error processing dependency 'http://sputnik.freewisdom.org/rocks/galaxy/sputnik-10.12.28-0.rockspec' (This is running the latest Git code, which is for these purposes, the same as the latest release.) -- Hisham http://hisham.hm/ ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_sfd2d_oct _______________________________________________ Luarocks-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/luarocks-developers
