-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
Description
Feature Description
Hello,
First, a big thank you to all the maintainers working on Gitea.
It's really a great tool.
While working with Composer packages and Gitea's package registry, I noticed that Gitea only allows ZIP archives to be uploaded. [1]
Meanwhle, Composer supports other archive formats (tar, tar.gz & tar.bz2) in additional to zip archives. [2]
Indeed, trying to upload anything other than a zip archive into Gitea fails:
$ curl --netrc --upload-file /tmp/build.tar.gz https://gitea.dev/api/packages/fpoirotte/composer
{"errors":[{"status":500,"message":"zip: not a valid zip file"}]}Since tar.gz and tar.bz2 archives usually offer much better compression than the zip format, it could help save disk space if these were supported too.
Would it be possible to add support for these formats? (and since both formats are built around the tar format, add support for raw tar archives as well in the process)
Cheers,
François
Screenshots
No response