Skip to content

Alpine Package Registry: noarch packages fail if x86_64 isn't present #38456

Description

@flamboyantpenguin

Gitea Version

1.26.4

What happened?

Greetings everyone. Recently I published a noarch package to the Alpine repo on Gitea. After publishing, I followed the instructions on the pages documentation to add the repo to a host.

One of the steps being adding this line to the /etc/apk/repositories

https://example.com/api/packages/dawn/alpine/$branch/$repository

However when running apk update or apk update install packagename

WARNING: updating and opening https://example.com/api/packages/dawn/alpine/edge/infra/$ARCH/x86_64/APKINDEX.tar.gz: HTTP 404: Not Found

After reading #26691, it seems noarch repos will be updated to other repos only if those repos are present. In my case there is no other x86_64 packages, hence that repo doesn't exist

How are you running Gitea?

OS: Alpine
Package: Native (binary latest)
DB: PostgreSQL 18.4

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions