From 8d7432ff69bb51fc7f9d1bd6efd06dc3130d5501 Mon Sep 17 00:00:00 2001 From: Ali Zein Yousuf Date: Sun, 14 Jun 2026 00:01:33 -0500 Subject: [PATCH] fix(gitea-runner): fetch source via /api/v1 archive endpoint gitea.com now redirects unauthenticated requests for ///archive/v*.tar.gz to /user/login, breaking emerge's source fetch (wget saves the login HTML, distfile size verify fails). The /api/v1/repos///archive/v*.tar.gz endpoint still serves anonymously and returns byte-identical contents, so the Manifest is unchanged. Updated both the live 1.0.4 ebuild SRC_URI and the bump-version.sh template so regenerated ebuilds (and the bump script's own vendor-tarball fetch) use the working URL. --- dev-util/gitea-runner/gitea-runner-1.0.4.ebuild | 2 +- scripts/bump-version.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dev-util/gitea-runner/gitea-runner-1.0.4.ebuild b/dev-util/gitea-runner/gitea-runner-1.0.4.ebuild index 522f6fe..946edda 100644 --- a/dev-util/gitea-runner/gitea-runner-1.0.4.ebuild +++ b/dev-util/gitea-runner/gitea-runner-1.0.4.ebuild @@ -8,7 +8,7 @@ inherit go-module DESCRIPTION="Gitea Actions runner (formerly act_runner)" HOMEPAGE="https://gitea.com/gitea/runner" SRC_URI=" - https://gitea.com/gitea/runner/archive/v${PV}.tar.gz -> ${P}.tar.gz + https://gitea.com/api/v1/repos/gitea/runner/archive/v${PV}.tar.gz -> ${P}.tar.gz https://git.azy.dev/azy5030/azy5030-overlay/releases/download/${PN}-${PV}-vendor/${P}-vendor.tar.xz " S="${WORKDIR}/runner" diff --git a/scripts/bump-version.sh b/scripts/bump-version.sh index 0cc1f19..e419aa7 100755 --- a/scripts/bump-version.sh +++ b/scripts/bump-version.sh @@ -10,7 +10,7 @@ set -euo pipefail PN="gitea-runner" UPSTREAM_RSS="https://gitea.com/gitea/runner/releases.rss" -UPSTREAM_ARCHIVE="https://gitea.com/gitea/runner/archive" +UPSTREAM_ARCHIVE="https://gitea.com/api/v1/repos/gitea/runner/archive" UPSTREAM_GOMOD="https://gitea.com/gitea/runner/raw/tag" : "${BUMP_TOKEN:?BUMP_TOKEN is required}"