On Mon, Aug 20, 2012 at 10:42 PM, Ahmad Amireh <ah...@amireh.net> wrote:
> I just took a look at the `lua_cliargs` rockspec in the repository and it's
> pointing to a version 1.1-1 while the rockspec in its git repository is
> versioned 1.1.-0 (in both the filename and the spec), so this might be the
> issue. Although, Luarocks seems to have reported to you that the package
> _was_ installed.
>
> I'm wondering how the spec in luarocks repository got bumped?
>
> In any case, I've just updated the rockspec to bump into 1.1-1 in the git
> repository and uploaded a new tarball. Here's what my install log looks
> like:
>
> root@cornholio:/home/bourne# luarocks install lua_cliargs
> Installing
> http://luarocks.org/repositories/rocks/lua_cliargs-1.1-1.src.rock...
> Using http://luarocks.org/repositories/rocks/lua_cliargs-1.1-1.src.rock...
> switching to 'build' mode
> Archive:
> /tmp/luarocks_luarocks-rock-lua_cliargs-1.1-1-9042/lua_cliargs-1.1-1.src.rock
>   inflating: lua_cliargs-1.1-1.rockspec
>   inflating: lua_cliargs-1.1.tar.gz
> Updating manifest for /usr/lib/luarocks/rocks
>
> lua_cliargs 1.1-1 is now built and installed in /usr/ (license: MIT/X11)
>
> Sorry about this if it turns out to be my fault!

No, don't worry, it wasn't. Old versions of LuaRocks had a bug parsing
dependency names contaning underscores (yeah, silly, I know -- sorry
about that!).

About the 1.1-0 vs. 1.1-1: that's not a problem. The trailing revision
numbers refer to a rockspec revision, rather than a package version.
My policy is to number each change made to a rockspec pushed to the
repo as a different revision number, and to start them with -1. Often
devs keep their upstream rockspec numbered at -0, and that's not a
problem. In a sense it even helps to differentiate between the
upstream and the reviewed rockspec, though I don't mind to receive
rockspecs for new versions numbered at -1 (it actually saves me a
little work :) ). The dependency system knows how to handle the
revision numbers, so they're not a problem.

Cheers,

-- Hisham

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Luarocks-developers mailing list
Luarocks-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/luarocks-developers

Reply via email to