Hello!

I ran into a strange bug after installing LR 2.1.0: it seems that it
doesn't understand dependencies on rocks which names start with a
digit(there is only one such rock - 30log).

Any rockspec with 30log dependency fails with this error:

> Error: Parse error processing dependency '30log >= 0.5': failed to extract 
> dependency name from '30log >= 0.5'

It may be reproduced using a rockspec for one of my not-released-yet projects:

http://raw.github.com/lua4web/lunitz/master/rockspecs/lunitz-0.1-1.rockspec

Just download it and run luarocks install...

I think that the reason is in luarocks.deps.parse_dep function. It
needs rocks' names to start with a letter:

> local name, rest = dep:match("^%s*([a-zA-Z][a-zA-Z0-9%.%-%_]*)%s*(.*)")

Thanks,

Peter

------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
Luarocks-developers mailing list
Luarocks-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/luarocks-developers

Reply via email to