heyhusen / archlinux-package-action Goto Github PK
View Code? Open in Web Editor NEWGitHub Action to run Arch Linux's package tools
Home Page: https://github.com/marketplace/actions/arch-linux-s-package-action
License: MIT License
GitHub Action to run Arch Linux's package tools
Home Page: https://github.com/marketplace/actions/arch-linux-s-package-action
License: MIT License
Running makepkg with flags
==> Making package: psst-git-bin r264.1d5cf32-2 (Thu 20 Jan 2022 01:41:02 PM UTC)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Installing missing dependencies...
We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:
#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.
builder is not in the sudoers file. This incident will be reported.
==> ERROR: 'pacman' failed to install missing dependencies.
==> Missing dependencies:
-> rust
-> gtk3
-> cairo
-> clang
==> ERROR: Could not resolve all dependencies.
I have no idea why this is failing... Do you have any clues? Thanks ahead of time!
It would be nice if this action copied more files to and from the container.
For example, some packages require an install file or patch files to build. These will fail in this action.
Also, using makepkg
one can generate a pkg.tar.zst
file, it would nice if this could be sent back to the runner and then it could uploaded as an artifact in a later step.
When generating the .SRCINFO
file (makepkg --printsrcinfo >.SRCINFO
from entrypoint.sh
), I'm getting the following error:
==> ERROR: install file (drata-agent.install) does not exist or is not a regular file.
This is the install=
file from my PKGBUILD
. I see that in the setup section toward the top of the entrypoint.sh
it's only copying over the .git
dir and the PKGBUILD
file from the path
that the user can pass in. Meaning that the install
file from my PKGBUILD
(drata-agent.install
) is in fact missing from the ~/gh-action
directory.
Can we copy the whole contents of that directory? Or specify additional files that should be copied over?
Only .SRCINFO
and PKGBUILD
are copied to the path
if defined.
I think there should be a way to include more than those two (e.g. patches), either by specifying additional variables or copying the entire path
directory (which I was expecting it to do).
What do you suggest?
Let me know if you want me to open a PR,
Cheers.
I get the following when running this action now.
checking keyring...
checking package integrity...
error: glibc: signature from "Frederik Schwan <[email protected]>" is unknown trust
:: File /var/cache/pacman/pkg/glibc-2.36-6-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
error: gcc-libs: signature from "Frederik Schwan <[email protected]>" is unknown trust
Do you want to delete it? [Y/n]
:: File /var/cache/pacman/pkg/gcc-libs-12.2.0-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
error: binutils: signature from "Frederik Schwan <[email protected]>" is unknown trust
Do you want to delete it? [Y/n]
:: File /var/cache/pacman/pkg/binutils-2.39-3-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
error: gcc: signature from "Frederik Schwan <[email protected]>" is unknown trust
Do you want to delete it? [Y/n]
:: File /var/cache/pacman/pkg/gcc-12.2.0-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
error: libtool: signature from "Frederik Schwan <[email protected]>" is unknown trust
error: failed to commit transaction (invalid or corrupted package)
Do you want to delete it? [Y/n]
:: File /var/cache/pacman/pkg/libtool-2.4.7-5-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n]
Errors occurred, no packages were upgraded.
I have not researched this heavily, but did find this: https://www.reddit.com/r/archlinux/comments/rc1z0f/frederick_schwan_signature_issues
Maybe some clues there on how to solve it.
When trying to use the action, I get the following error:
Pull down action image 'ghcr.io/hapakaien/archlinux-package-action:2'
/usr/bin/docker pull ghcr.io/hapakaien/archlinux-package-action:2
Error response from daemon: Head "https://ghcr.io/v2/hapakaien/archlinux-package-action/manifests/2": denied
Warning: Docker pull failed with exit code 1, back off 6.712 seconds before retry.
My release pipeline failed.
makepkg failed to install dependencies.
Maybe there is an issue with the mirrorlist in the docker container?
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.
The action does not fail if the PKGBUILD was not found.
In my case I ended up not updating the source hashes and still pushing the package to the aur.
You might consider putting set -e
at the beginning of the script.
Starting the last day or so, I have been getting an error like this:
error: lame: signature from "Somename <[email protected]>" is marginal trust
Here is the full output: https://github.com/SunshineStream/Sunshine/runs/7500247323?check_suite_focus=true#step:7:416
And my workflow: https://github.com/SunshineStream/Sunshine/actions/runs/2732417974/workflow#L131
I am using aur: true
based on this comment: #23 (comment)
This looks to be a similar issue (solved), but using this action it doesn't appear to be possible for us to apply the fix (or I am not seeing a way to): https://bbs.archlinux.org/viewtopic.php?id=267364
Let me know if I should provide any additional details. Thank you!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.