heyhusen / archlinux-package-action

GitHub Action to run Arch Linux's package tools

Home Page:https://github.com/marketplace/actions/arch-linux-s-package-action

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

makepkg: dependency installation fails

hnicke opened this issue · comments

My release pipeline failed.
makepkg failed to install dependencies.

Maybe there is an issue with the mirrorlist in the docker container?

Logs Run hapakaien/archlinux-package-action@v2.1.1 /usr/bin/docker run --name ghcriohapakaienarchlinuxpackageaction2_09eefc --label 08450d --workdir /github/workspace --rm -e INPUT_PATH -e INPUT_UPDPKGSUMS -e INPUT_PKGVER -e INPUT_PKGREL -e INPUT_SRCINFO -e INPUT_FLAGS -e INPUT_NAMCAP -e INPUT_AUR -e HOME -e GITHUB_JOB -e GITHUB_REF -e GITHUB_SHA -e GITHUB_REPOSITORY -e GITHUB_REPOSITORY_OWNER -e GITHUB_RUN_ID -e GITHUB_RUN_NUMBER -e GITHUB_RETENTION_DAYS -e GITHUB_RUN_ATTEMPT -e GITHUB_ACTOR -e GITHUB_WORKFLOW -e GITHUB_HEAD_REF -e GITHUB_BASE_REF -e GITHUB_EVENT_NAME -e GITHUB_SERVER_URL -e GITHUB_API_URL -e GITHUB_GRAPHQL_URL -e GITHUB_REF_NAME -e GITHUB_REF_PROTECTED -e GITHUB_REF_TYPE -e GITHUB_WORKSPACE -e GITHUB_ACTION -e GITHUB_EVENT_PATH -e GITHUB_ACTION_REPOSITORY -e GITHUB_ACTION_REF -e GITHUB_PATH -e GITHUB_ENV -e GITHUB_STEP_SUMMARY -e RUNNER_OS -e RUNNER_ARCH -e RUNNER_NAME -e RUNNER_TOOL_CACHE -e RUNNER_TEMP -e RUNNER_WORKSPACE -e ACTIONS_RUNTIME_URL -e ACTIONS_RUNTIME_TOKEN -e ACTIONS_CACHE_URL -e GITHUB_ACTIONS=true -e CI=true -v "/var/run/docker.sock":"/var/run/docker.sock" -v "/home/runner/work/_temp/_github_home":"/github/home" -v "/home/runner/work/_temp/_github_workflow":"/github/workflow" -v "/home/runner/work/_temp/_runner_file_commands":"/github/file_commands" -v "/home/runner/work/sodalite/sodalite":"/github/workspace" ghcr.io/hapakaien/archlinux-package-action:2 "packaging/arch" "" "" "true" "false" "-cfs --noconfirm" "true" "false" Copying files from /github/workspace/packaging/arch to /home/builder/gh-action Updating checksums on PKGBUILD Validating PKGBUILD with namcap Running makepkg with flags ==> Making package: sodalite 0.21.40-1 (Thu 26 May 2022 07:15:15 AM UTC) ==> Checking runtime dependencies... ==> Installing missing dependencies... resolving dependencies... looking for conflicting packages...

Package (32) New Version Net Change Download Size

extra/libice 1.0.10-3 0.35 MiB 0.08 MiB
extra/libsm 1.2.3-2 0.26 MiB 0.04 MiB
extra/libx11 1.8-1 10.08 MiB 2.05 MiB
extra/libxau 1.0.9-3 0.02 MiB 0.01 MiB
extra/libxcb 1.15-1 3.77 MiB 0.98 MiB
extra/libxdmcp 1.1.3-3 0.13 MiB 0.03 MiB
extra/libxext 1.3.4-3 0.30 MiB 0.10 MiB
extra/libxmu 1.1.3-2 0.33 MiB 0.08 MiB
extra/libxt 1.2.1-1 2.03 MiB 0.52 MiB
extra/libyaml 0.2.5-1 0.18 MiB 0.06 MiB
extra/python-appdirs 1.4.4-6 0.07 MiB 0.01 MiB
community/python-argh 0.26.2-10 0.15 MiB 0.03 MiB
extra/python-chardet 4.0.0-5 2.10 MiB 0.19 MiB
community/python-more-itertools 8.12.0-2 0.48 MiB 0.07 MiB
extra/python-ordered-set 4.0.2-6 0.06 MiB 0.01 MiB
extra/python-packaging 21.3-1 0.26 MiB 0.06 MiB
community/python-pathtools 0.1.2-11 0.05 MiB 0.01 MiB
extra/python-pyparsing 3.0.8-1 0.96 MiB 0.15 MiB
extra/python-setuptools 1:60.4.0-1 3.00 MiB 0.53 MiB
extra/xcb-proto 1.15-1 0.88 MiB 0.11 MiB
extra/xorg-xprop 1.2.5-1 0.05 MiB 0.03 MiB
extra/xorg-xset 1.2.4-2 0.04 MiB 0.02 MiB
extra/xorgproto 2022.1-1 1.43 MiB 0.23 MiB
community/python-binaryornot 0.4.4-6 0.03 MiB 0.01 MiB
community/python-blinker 1.4-11 0.09 MiB 0.02 MiB
community/python-click 8.1.3-1 0.89 MiB 0.15 MiB
community/python-pygments 2.12.0-1 11.43 MiB 2.08 MiB
community/python-pyperclip 1.8.2-4 0.07 MiB 0.02 MiB
extra/python-urwid 2.1.2-3 1.96 MiB 0.31 MiB
community/python-watchdog 0.10.7-3 0.51 MiB 0.09 MiB
community/python-yaml 6.0-1 0.74 MiB 0.17 MiB
extra/xdg-utils 1.1.3+19+g9816ebb-1 0.28 MiB 0.06 MiB

Total Download Size: 8.32 MiB
Total Installed Size: 42.98 MiB

:: Proceed with installation? [Y/n]
:: Retrieving packages...
error: failed retrieving file 'python-setuptools-1:60.4.0-1-any.pkg.tar.zst' from geo.mirror.pkgbuild.com : The requested URL returned error: 404
python-pygments-2.12.0-1-any downloading...
libx11-1.8-1-x86_64 downloading...
libxcb-1.15-1-x86_64 downloading...
python-setuptools-1:60.4.0-1-any downloading...
libxt-1.2.1-1-x86_64 downloading...
python-urwid-2.1.2-3-x86_64 downloading...
xorgproto-2022.1-1-any downloading...
python-chardet-4.0.0-5-any downloading...
python-yaml-6.0-1-x86_64 downloading...
python-click-8.1.3-1-any downloading...
python-pyparsing-3.0.8-1-any downloading...
xcb-proto-1.15-1-any downloading...
libxext-1.3.4-3-x86_64 downloading...
python-watchdog-0.10.7-3-any downloading...
libice-1.0.10-3-x86_64 downloading...
error: failed retrieving file 'python-setuptools-1:60.4.0-1-any.pkg.tar.zst' from mirror.rackspace.com : The requested URL returned error: 404
error: failed retrieving file 'python-pyparsing-3.0.8-1-any.pkg.tar.zst' from geo.mirror.pkgbuild.com : The requested URL returned error: 404
error: failed retrieving file 'libxext-1.3.4-3-x86_64.pkg.tar.zst' from geo.mirror.pkgbuild.com : The requested URL returned error: 404
warning: too many errors from geo.mirror.pkgbuild.com, skipping for the remainder of this transaction
error: failed retrieving file 'python-setuptools-1:60.4.0-1-any.pkg.tar.zst' from mirror.leaseweb.net : The requested URL returned error: 404
error: failed retrieving file 'python-pyparsing-3.0.8-1-any.pkg.tar.zst' from mirror.rackspace.com : The requested URL returned error: 404
error: failed retrieving file 'libxext-1.3.4-3-x86_64.pkg.tar.zst' from mirror.rackspace.com : The requested URL returned error: 404
warning: too many errors from mirror.rackspace.com, skipping for the remainder of this transaction
error: failed retrieving file 'python-pyparsing-3.0.8-1-any.pkg.tar.zst' from mirror.leaseweb.net : The requested URL returned error: 404
error: failed retrieving file 'libxext-1.3.4-3-x86_64.pkg.tar.zst' from mirror.leaseweb.net : The requested URL returned error: 404
warning: too many errors from mirror.leaseweb.net, skipping for the remainder of this transaction
error: failed retrieving file 'libice-1.0.10-3-x86_64.pkg.tar.zst' from mirror.rackspace.com : The requested URL returned error: 404
warning: failed to retrieve some files
error: failed to commit transaction (failed to retrieve some files)
Errors occurred, no packages were upgraded.
==> ERROR: 'pacman' failed to install missing dependencies.
==> Missing dependencies:
-> python-binaryornot
-> python-urwid
-> python-yaml
-> python-pyperclip
-> python-pygments
-> python-watchdog
-> python-click
-> python-blinker
-> xdg-utils
==> Checking buildtime dependencies...
==> ERROR: Could not resolve all dependencies.

I am seeing the same issue here

It looks like it's failing to download nodejs version 18.1.0, but the latest is currently 18.3.0. I think the pacman databases need to be updated in the entrypoint.sh otherwise they're out of date.

commented

My release pipeline failed. makepkg failed to install dependencies.

Maybe there is an issue with the mirrorlist in the docker container?
Logs
Run hapakaien/archlinux-package-action@v2.1.1 /usr/bin/docker run --name ghcriohapakaienarchlinuxpackageaction2_09eefc --label 08450d --workdir /github/workspace --rm -e INPUT_PATH -e INPUT_UPDPKGSUMS -e INPUT_PKGVER -e INPUT_PKGREL -e INPUT_SRCINFO -e INPUT_FLAGS -e INPUT_NAMCAP -e INPUT_AUR -e HOME -e GITHUB_JOB -e GITHUB_REF -e GITHUB_SHA -e GITHUB_REPOSITORY -e GITHUB_REPOSITORY_OWNER -e GITHUB_RUN_ID -e GITHUB_RUN_NUMBER -e GITHUB_RETENTION_DAYS -e GITHUB_RUN_ATTEMPT -e GITHUB_ACTOR -e GITHUB_WORKFLOW -e GITHUB_HEAD_REF -e GITHUB_BASE_REF -e GITHUB_EVENT_NAME -e GITHUB_SERVER_URL -e GITHUB_API_URL -e GITHUB_GRAPHQL_URL -e GITHUB_REF_NAME -e GITHUB_REF_PROTECTED -e GITHUB_REF_TYPE -e GITHUB_WORKSPACE -e GITHUB_ACTION -e GITHUB_EVENT_PATH -e GITHUB_ACTION_REPOSITORY -e GITHUB_ACTION_REF -e GITHUB_PATH -e GITHUB_ENV -e GITHUB_STEP_SUMMARY -e RUNNER_OS -e RUNNER_ARCH -e RUNNER_NAME -e RUNNER_TOOL_CACHE -e RUNNER_TEMP -e RUNNER_WORKSPACE -e ACTIONS_RUNTIME_URL -e ACTIONS_RUNTIME_TOKEN -e ACTIONS_CACHE_URL -e GITHUB_ACTIONS=true -e CI=true -v "/var/run/docker.sock":"/var/run/docker.sock" -v "/home/runner/work/_temp/_github_home":"/github/home" -v "/home/runner/work/_temp/_github_workflow":"/github/workflow" -v "/home/runner/work/_temp/_runner_file_commands":"/github/file_commands" -v "/home/runner/work/sodalite/sodalite":"/github/workspace" ghcr.io/hapakaien/archlinux-package-action:2 "packaging/arch" "" "" "true" "false" "-cfs --noconfirm" "true" "false" Copying files from /github/workspace/packaging/arch to /home/builder/gh-action Updating checksums on PKGBUILD Validating PKGBUILD with namcap Running makepkg with flags ==> Making package: sodalite 0.21.40-1 (Thu 26 May 2022 07:15:15 AM UTC) ==> Checking runtime dependencies... ==> Installing missing dependencies... resolving dependencies... looking for conflicting packages...

Looks like it's indeed a mirrorlist problem.

commented

What if I use reflector to update the mirror list?

Maybe I can put it in entrypoint.sh like @JamieMagee said, so it can be run every time this action is used.

Since @JamieMagee reported that it works with paru, I think the mirrorlist does not cause the problem here.
It seems like makepkg --syncdeps does not refresh the package database.
So maybe adding pacman -Sy in entrypoint.sh before calling makepkg helps.