pgxn / pgxn-manager

Interface for managing extensions on PGXN
http://pgxn.org
47 stars 18 forks source link

“xxx-1.4.2.tgz” doesn’t look like a distribution archive #61

Closed strk closed 3 years ago

strk commented 6 years ago

I'm getting such message upon uploading a tgz file for "releasing" it to the public, but the message doesn't tell me what's wrong in it. The tarball unpacks in a directory with the name of the extension and does contain a META.json file. For a quick look I uploaded it on this temporary URL: http://strk.kbt.io/tmp/table_version-1.4.2.tgz - can you see what's wrong with it ?

It would be helpful if the UI would tell what's lacking/missing/doing wrong

theory commented 6 years ago

Yes, that certainly looks fine. I ran my validator on the META.json and it worked. I wonder if something is missing from the PGXN manager config since the server upgrade last week…

theory commented 6 years ago

Would you post a screenshot of the response, please? I'm not able to replicate the issue, and there's nothing in the logs. :-(

strk commented 6 years ago

screenshot at 2018-04-05 15-42-29

theory commented 6 years ago

Try renaming the file to end in .tar.gz rather than .tgz.

strk commented 6 years ago

I tried both, the screenshot is for .tar.gz while the original report was for .tgz (same file, just renamed)

theory commented 6 years ago

Hrm. I just wrote a script trying to duplicate, and it worked, no error. WTF…

theory commented 6 years ago

I'll keep at it, but meanwhile, try uploading a zip file, instead.

strk commented 6 years ago

.zip worked

theory commented 6 years ago

So I see. WTF.

strk commented 6 years ago

How long does it take before the newly uploaded package is shown as latest ?

theory commented 6 years ago

It runs a cron job every 5 mins, but it will be on master now.

beaud76 commented 6 years ago

Hi, I have had exactly the same problem yesterday with a new release of the E-Maj extension (2.3.0). Same message, same input formats (tar.gz and tgz), and same workaround by using a zip file. The tgz file is quite large: 4.3 Mb. But I tried with a smaller one (2.3Mb) with no success. Here is the faulting file: emaj-2.3.0.tar.gz