Skip to content

Package registry Rubygems does not allow multi plattform gems #35409

@schorsch

Description

@schorsch

Description

Rubygems can have multiple gems per version with a specific platform suffix. An example can be seen here on rubygems.org for the blake3-rb gem. Those gems contain precompiled binaries for specific plattforms and can also contin an non-suffixed version which gets compiled druing install. When running gem / bundle install the right platform version is auto-detected, i think by the client with this code.

On package create gitea checks only for a unique name(type/owner) in TryInsertPackage which should be enhanced, at least for rubygems, to take the platform into account. In the package listing those multiple packages per main version should also be shown.
In packages rubygems metadata the platform seems to be present.

Gitea Version

1.24.5

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

docker

Database

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue/needs-feedbackFor bugs, we need more details. For features, the feature must be described in more detailtopic/packagestype/bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions