I just cloned the repository, manually edited one of the rockspecs
(luaunit-2.0-1.rockspec) and made it point to tag "2.0", which still exists.
Then I built it:

$ luarocks build luaunit-2.0-1.rockspec
Cloning into 'luaunit'...
remote: Counting objects: 7, done.
remote: Compressing objects: 100% (7/7), done.
remote: Total 7 (delta 0), reused 4 (delta 0)
Receiving objects: 100% (7/7), 8.34 KiB | 0 bytes/s, done.
Checking connectivity... done.
Note: checking out '8ed8a661bca96356de44146f4355de1c670f8523'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b new_branch_name

Updating manifest for c:\luarocks\systree/lib/luarocks/rocks

luaunit 2.0-1 is now built and installed in c:\luarocks\systree (license:
X11)


I made sure the version installed was the tagged one:
$ git tag --points-at 8ed8a661bca96356de44146f4355de1c670f8523
v2.0


So it is working for me. LuaRocks 2.2.0beta1 and git 1.9.2
I also tried with:
$ luarocks pack luaunit-2.0-1.rockspec

and it worked ok too.


this is the modification I made to the rockspec:
source = {
url = "git://github.com/rjpcomputing/luaunit",
tag = "v2.0"
}





On Tue, Jun 10, 2014 at 5:43 PM, RJP Computing <rjpcomput...@gmail.com>
wrote:

> Hi Hisham,
>
> On Tue, Jun 10, 2014 at 3:47 PM, Hisham <h...@hisham.hm> wrote:
>
>> On 10 June 2014 15:18, Ryan Pusztai <rpusz...@gmail.com> wrote:
>> > Hi,
>> >
>> > I hope this is not known, but I am writting a new rockspec and created a
>> > "release"/tag on GitHub named 'v2.0' and added it in my rockspec as
>> > `source.tag="v2.0"` and I get this as an error:
>> >
>> > ```
>> > $ luarocks pack luaunit-2.0-1.rockspec
>> > Cloning into 'luaunit'...
>> > fatal: remote error:
>> >
>> >
>> > Error: Failed cloning git repository.
>> > ```
>> >
>> > Should I be able to use 'v2.0' as the `source.tag`?
>>
>> Strange, "v2.0" should be valid, I'm pretty sure other rockspecs use
>> dots in tags. Are you sure the tag is the source of your problem?
>>
>
> Well I changed the tag name to 'v2_0' and the error went away. I am using
> GitHub site [1] to create the releases. You can poke around and see that
> the name and tag are different values. So it was not the name that needed
> to change only the tag. I am using Git v1.9.1 on Ubuntu 14.04 amd64.
>
> I added 2 rockspecs [2] under "rockspec" and one is for v2.0 [3] and you
> can change the `source.tag` to "v2.0" because it is still there in the repo
> and see the same error. Does that help? Please check that I wrote this
> correctly. It is my first one I am sure I messed something up ;)
> --
> Regards,
> Ryan
>
> [1] https://github.com/rjpcomputing/luaunit/releases
> [2] https://github.com/rjpcomputing/luaunit/tree/master/rockspec
> [3]
> https://github.com/rjpcomputing/luaunit/blob/master/rockspec/luaunit-2.0-1.rockspec
>
>
> ------------------------------------------------------------------------------
> HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
> Find What Matters Most in Your Big Data with HPCC Systems
> Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
> Leverages Graph Analysis for Fast Processing & Easy Data Exploration
> http://p.sf.net/sfu/hpccsystems
> _______________________________________________
> Luarocks-developers mailing list
> Luarocks-developers@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/luarocks-developers
>
>
------------------------------------------------------------------------------
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
_______________________________________________
Luarocks-developers mailing list
Luarocks-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/luarocks-developers

Reply via email to