Coder Social home page Coder Social logo

heyhusen / archlinux-package-action Goto Github PK

View Code? Open in Web Editor NEW
24.0 24.0 14.0 96 KB

GitHub Action to run Arch Linux's package tools

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

License: MIT License

Dockerfile 20.10% Shell 79.90%
archlinux aur github-actions makepkg pkgbuild

archlinux-package-action's People

Contributors

dependabot[bot] avatar heyhusen avatar kamack38 avatar reenignearcher avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

archlinux-package-action's Issues

Makepkg fails to resolve dependencies because of user failing to be in the sudoers file

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!

feature request: copy more files to/from container

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.

Support PKGBUILD `install` file / Copy more files to working dir in `entrypoint.sh`

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?

Notes

Missing files when 'path' not default.

Only .SRCINFO and PKGBUILDare 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.

signatures of unknown trust

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.

Can't pull the docker image

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.

makepkg: dependency installation fails

My release pipeline failed.
makepkg failed to install dependencies.

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

Logs Run hapakaien/[email protected] /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.

Action does not fail if PKGBUILD was not found

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.

marginal trust signature

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!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.