.github/workflows/nvchecker.yml: write repos.conf instead of eselect repository
eselect repository downloads repositories.xml from api.gentoo.org first. On 2026-10-09 the runner resolved that host to IPv6 addresses only, could not reach them, and the eix job failed before any check ran. Neither repo needs the list: write their repos.conf entries directly and drop app-eselect/eselect-repository from the job's dependencies. Signed-off-by: Zakk <zakk@gentoozh.org>
This commit is contained in:
1 parent
2f30c2b099
commit
ed7fcfd120
2 files changed
+16
-4
No files matched your search
@@ -31,13 +31,20 @@ jobs:
|
||||
- name: install depends
|
||||
run: |
|
||||
emerge --verbose --quiet --jobs "$(nproc)" --autounmask y --autounmask-continue y \
|
||||
app-eselect/eselect-repository \
|
||||
app-portage/eix \
|
||||
dev-vcs/git
|
||||
|
||||
# eselect repository fetches repositories.xml from api.gentoo.org, which the runner
|
||||
# sometimes resolves to IPv6 only and cannot reach
|
||||
- name: setup gentoo git repo
|
||||
run: |
|
||||
eselect repository add gentoo git https://github.com/gentoo-mirror/gentoo.git
|
||||
mkdir -p /etc/portage/repos.conf
|
||||
cat > /etc/portage/repos.conf/gentoo.conf << EOF
|
||||
[gentoo]
|
||||
location = /var/db/repos/gentoo
|
||||
sync-type = git
|
||||
sync-uri = https://github.com/gentoo-mirror/gentoo.git
|
||||
EOF
|
||||
rm -rf /var/db/repos/gentoo
|
||||
emaint sync -r gentoo
|
||||
|
||||
|
||||
@@ -2,9 +2,14 @@
|
||||
# usage: nvchecker-eix.sh
|
||||
set -euo pipefail
|
||||
|
||||
echo "::group::eselect repository add and sync"
|
||||
echo "::group::add and sync the overlay"
|
||||
repo_name=$(cat profiles/repo_name)
|
||||
eselect repository add "$repo_name" git "file://${PWD}"
|
||||
cat > "/etc/portage/repos.conf/${repo_name}.conf" << EOF
|
||||
[${repo_name}]
|
||||
location = /var/db/repos/${repo_name}
|
||||
sync-type = git
|
||||
sync-uri = file://${PWD}
|
||||
EOF
|
||||
emerge --sync "$repo_name"
|
||||
egencache --jobs="$(nproc)" --update --repo "$repo_name" &> /dev/null
|
||||
eix-update
|
||||
|
||||
Reference in new issue
Block a user