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 fails to resolve dependencies because of user failing to be in the sudoers file

thebiblelover7 opened this issue · comments

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!

commented

Sorry, actually I don't understand that either. But, have you tested your PKGBUILD file locally?
Maybe with makepkg -si command?

commented

I've created PR #9 which should fix this problem.

Can you try using the bugfix/sudoers-user branch instead of v1?

Your workflow will look like this:

 - name: Validate package
   uses: hapakaien/archlinux-package-action@bugfix/sudoers-user

PS: I have moved this repo.

@hapakaien your bugfix/sudoers-user branch seems to fix it!

Thanks a lot!
II think this should close #9 to be merged to main