Hi Steve,

About your initial e-mail:

Now, the canonical tarball download against the tag is fine, except if
you're using LR's proxy. From wget I worked out the final redirected
download url; that worked.

But this morning, I got a 404; after a wget on the canonical url,
thereafter things worked again.

Which suggests that the direct link is to a file which is not cached
for very long?

However, at least the directory name within the archive is stable ....

I suppose that's the point of source rocks.  Any advice from people
who have been here before?

I shouldn't have send my previous reply when I did; it doesn't even address the main point of your e-mail, sorry about that :-). When I wrote my first rockspec [1] (for the Lua/APR binding [2]) I tried to use git tags which GitHub automatically converts to archives. I gave up on this idea because I couldn't get it to work. Since then I've been posting ZIP archives manually to the downloads area of my GitHub repository, which is a PITA but at least it works.

If I recall correctly LuaRocks didn't like the generated downloads from GitHub because it was very picky about the name of the directory inside the ZIP file. This is why I switched to manually created ZIP archives.

If you indeed got this working perhaps I should take a close look at your method and see if I can adapt it to my situation!

Now about your reply to me:

Now I'm still a bit confused, but stuff going onto the main repo
usually gets packaged as a rock:

http://www.luarocks.org/en/Types_of_rocks

So that is a snapshot of the source at the point of uploading to the
repo? Fabio or Hisham, like to comment?

Sorry for the confusion, I never realized the difference between rocks and rockspecs :-S. As you might have guessed from my previous message I was talking about rockspecs which refer to an external ZIP archive that is downloaded when the rock(spec) is installed.

It would be cool BTW if there was a mirror for the main repo, living
somewhere central like Europe. Should not be too difficult to keep in
sync ('dumb store'), but it does involve some commitment and
sponsorship...

Can anyone indicate how big the main LR repo is in megabytes? I host my website and e-mail on a VPS (located in the Netherlands) with a 10 GB virtual disk of which 3 GB is currently in use. If the mirror doesn't take too much disk space and is only used as a fall back [3] when the main repo is offline I would definitely consider hosting it...

 - Peter Odding

[1] http://github.com/xolox/lua-apr/blob/master/etc/lua-apr-0.6-1.rockspec

[2] http://peterodding.com/code/lua/apr/

[3] I'm a student without a job and don't want to end up paying for excess bandwidth use because I'm hosting the LR repo mirror ;-)

_______________________________________________
Luarocks-developers mailing list
[email protected]
http://lists.luaforge.net/cgi-bin/mailman/listinfo/luarocks-developers

Reply via email to