From 57e0428658ff52e4a6e5668c0cf6165a126860ab Mon Sep 17 00:00:00 2001 From: Ali Zein Yousuf Date: Wed, 20 May 2026 19:59:46 -0500 Subject: [PATCH] ci: create repos.conf dir before writing repo configs A fresh gentoo/stage3 container has no /etc/portage/repos.conf directory, so writing gentoo.conf failed. mkdir -p it first in both workflows and the bump script. Co-Authored-By: Claude Opus 4.7 (1M context) --- .gitea/workflows/bump.yaml | 1 + .gitea/workflows/ci.yaml | 1 + scripts/bump-version.sh | 1 + 3 files changed, 3 insertions(+) diff --git a/.gitea/workflows/bump.yaml b/.gitea/workflows/bump.yaml index 1506ad5..4fd188f 100644 --- a/.gitea/workflows/bump.yaml +++ b/.gitea/workflows/bump.yaml @@ -15,6 +15,7 @@ jobs: - name: Configure portage + install tooling run: | + mkdir -p /etc/portage/repos.conf printf '[DEFAULT]\nmain-repo = gentoo\n\n[gentoo]\nlocation = /var/db/repos/gentoo\n' \ > /etc/portage/repos.conf/gentoo.conf sed -i 's/^verify-signature = true/verify-signature = false/' \ diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index 1986fa7..ee20c79 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -19,6 +19,7 @@ jobs: # can be pulled instead of compiled. - name: Configure portage run: | + mkdir -p /etc/portage/repos.conf printf '[DEFAULT]\nmain-repo = gentoo\n\n[gentoo]\nlocation = /var/db/repos/gentoo\n' \ > /etc/portage/repos.conf/gentoo.conf sed -i 's/^verify-signature = true/verify-signature = false/' \ diff --git a/scripts/bump-version.sh b/scripts/bump-version.sh index 16611ed..2904c43 100755 --- a/scripts/bump-version.sh +++ b/scripts/bump-version.sh @@ -89,6 +89,7 @@ goreq=$(curl -fsSL "${UPSTREAM_GOMOD}/v${latest}/go.mod" \ mkdir -p /var/cache/distfiles cp "${dist}/${PN}-${latest}.tar.gz" /var/cache/distfiles/ cp "${dist}/${PN}-${latest}-vendor.tar.xz" /var/cache/distfiles/ +mkdir -p /etc/portage/repos.conf printf '[DEFAULT]\nmain-repo = gentoo\n\n[gentoo]\nlocation = /var/db/repos/gentoo\n' \ > /etc/portage/repos.conf/gentoo.conf printf '[azy5030]\nlocation = %s\nmasters = gentoo\nauto-sync = false\n' "$WORK" \