Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Please add support for tar / tar.gz / tar.bz2 archives in Composer package registry #35957

@fpoirotte

Description

@fpoirotte

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/proposalThe new feature has not been accepted yet but needs to be discussed first.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions