Skip to content

Migrate from Gitlab fails on releases with different number of links and artifacts #36292

@argoyle

Description

@argoyle

Description

There seems to be an assumption in the code on how releases are structured.
The code at gitlab.go:324 assumes that rel.Assets.Links and rel.Assets.Sources have the same length, but they don't always match in GitLab's API response.
See an example in my public repo here: https://gitlab.com/unboundsoftware/schemas/-/releases
The releases are created by GoReleaser and have 4 sources and 7 links.

Gitea Version

1.25.3

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

https://gist.github.com/argoyle/b56eebdad18c3f7d85125a00dd3af947

Screenshots

No response

Git Version

2.49.1

Operating System

gitea-rootless Docker image

How are you running Gitea?

Kubernetes deployment using the gitea-rootless image

Database

PostgreSQL

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions