luarocks / luarocks-site

LuaRocks website and module host
http://luarocks.org
176 stars 36 forks source link

Uploading a new rockspec file still picks the old one #36

Closed subnetmarco closed 9 years ago

subnetmarco commented 9 years ago

I am experiencing the following weird issue when using Chrome:

I don't know what it's going on, maybe the old rockspec file is being cached the first time and uploading it again with a different content doesn't actually override the cache and still picks the old content?

moteus commented 9 years ago

I just faced with same issues. I try web interface and luarocks upload command.

moteus commented 9 years ago

Even after I delete specific verision (scm-0) of my module (via Web) and upload it again with new rockspec I still get old one

subnetmarco commented 9 years ago

@leafo pinging you on this since it is a critical issue, it prevents updating a rockspec.

leafo commented 9 years ago

I don't think you should be changing the contents of a rockspec after you deploy it. Imagine it gets uploaded and cached across all of our mirrors in the time it took you to discover the typo. The luarocks protocol has no information about dates/hashes on rockspecs so you're pretty much screwed. I can fix it in this case but I don't recommend doing it, increment the number at the end of the file.

moteus commented 9 years ago

I talk about scm rockspecs. This rockspecs should build current master of module. So when I change module (e.g. add new file/rename existing one) I have to update scm rockspec too. Also old rockspec did not work any more and become useless and there not reason to keep it. So replce this rockspec is best way.

PS. new rockspec start beeng avaliable after ~30 minutes after uploading.

leafo commented 9 years ago

The same problem exists for SCM rockspecs. I've deployed code that keeps track of the upload revision and busts the cache on moonrocks, but it will not affect any cached copies of the rockspecs/modules.

subnetmarco commented 9 years ago

The same issue is still happening. How to replicate:

adityaramesh commented 8 years ago

I'm also experiencing this problem. If I make a change to a rockspecs file on a Github repository, it takes Luarocks some time in order to download the new file rather than continue using the cached version. This makes debugging rockspecs files rather irritating. Is there any way to force luarocks to download the latest version of the requested rockspecs file?