Generic package multiple assets #9334

Closed
opened 2025-11-02 08:35:48 -06:00 by GiteaMirror · 3 comments
Owner

Originally created by @pchampio on GitHub (Aug 3, 2022).

Feature Description

Gitea generic package only supports adding a single asset for a given tag version. 86e5268c39/routers/api/packages/generic/generic.go (L92-L112)

I think having the possibility to add multiple assets (for example Windows, MacOS, Linux executable) to a single version is very common.

Ping @KN4CK3R 😉

Screenshots

No response

Originally created by @pchampio on GitHub (Aug 3, 2022). ### Feature Description Gitea generic package only supports adding a single asset for a given tag version. https://github.com/go-gitea/gitea/blob/86e5268c396bd89716b2617a4949837982c1b0c3/routers/api/packages/generic/generic.go#L92-L112 I think having the possibility to add multiple assets (for example Windows, MacOS, Linux executable) to a single version is very common. Ping @KN4CK3R :wink: ### Screenshots _No response_
GiteaMirror added the topic/packagestype/proposaltype/feature labels 2025-11-02 08:35:48 -06:00
Author
Owner

@KN4CK3R commented on GitHub (Aug 3, 2022):

Sure, may be a bad decission to allow only one file per version. I did it because I don't know how to count the downloads of a version with multiple assests. Should every download of single file increase the version download counter?

@KN4CK3R commented on GitHub (Aug 3, 2022): Sure, may be a bad decission to allow only one file per version. I did it because I don't know how to count the downloads of a version with multiple assests. Should every download of single file increase the version download counter?
Author
Owner

@KN4CK3R commented on GitHub (Aug 3, 2022):

Added this in #20661 and increases the download counter for every file.

@KN4CK3R commented on GitHub (Aug 3, 2022): Added this in #20661 and increases the download counter for every file.
Author
Owner

@pchampio commented on GitHub (Aug 3, 2022):

Should every download of single file increase the version download counter?

yes!

@pchampio commented on GitHub (Aug 3, 2022): > Should every download of single file increase the version download counter? yes!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#9334