Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generic Packages Repository, put multiple files in the same package/version #21517

Closed
danielezelante opened this issue Oct 19, 2022 · 1 comment

Comments

@danielezelante
Copy link

Description

I tried to publish a package version and upload a file as shown in:
https://docs.gitea.io/en-us/packages/generic/
PUT https://gitea.example.com/api/packages/{owner}/generic/{package_name}/{package_version}/{file_name}

When I upload the first file using curl in the new package/version, all is right, but when I try to upload another file (with a different name) to the same package/version, I got this error: 400 Bad Request

On server, gitea.log contains:
2022/10/19 23:00:57 ...packages/packages.go:159:createPackageAndVersion() [E] [63506587-2] Error inserting package: Package version already exists
2022/10/19 23:00:57 ...ges/helper/helper.go:32:LogAndProcessError() [D] [63506587-2] Package version already exists

Gitea Version

1.17.3

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

2.31.1

Operating System

RHEL9

How are you running Gitea?

systemd https://dl.gitea.io/gitea/1.17.3/gitea-1.17.3-linux-amd64

Database

PostgreSQL

@KN4CK3R
Copy link
Member

KN4CK3R commented Oct 20, 2022

Support for multiple files in a single generic package/version was added in #20661 and is only available with Gitea 1.18. Unfortunately our docs are not versioned at the moment.

@KN4CK3R KN4CK3R closed this as completed Oct 20, 2022
@go-gitea go-gitea locked and limited conversation to collaborators May 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants