2m / arch-pkgbuild-builder

Arch Linux PKGBUILD GitHub builder action
https://github.com/marketplace/actions/arch-linux-pkgbuild-builder-action
35 stars 24 forks source link

Action failing for target srcinfo #32

Closed adi-g15 closed 3 years ago

adi-g15 commented 3 years ago

The action was failing on my repository, for the target 'srcinfo'. I tried to verify if my .SRCINFO was incorrect, tried the same with paru (https://aur.archlinux.org/packages/paru/), and it seems it fails for other AUR packages too.

2021-06-08_01-02

I can't seem to know why that diff is being shown, sorry if it turns out to be something stupid :sweat_smile:

This is my pkgbuild.yml -

name: pkgbuild

on: ['push','pull_request']

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2
    - uses: 2m/arch-pkgbuild-builder@v1.16
      with:
        target: 'srcinfo'
        pkgname: '.'
    - uses: 2m/arch-pkgbuild-builder@v1.16
      with:
        target: 'pkgbuild'
        pkgname: '.'

The problem doesn't come up when tried on my system (the above part is output of cat -A .SRCINFO -

2021-06-08_01-07
2m commented 3 years ago

Thanks for the report. The diff was caused by a white-space difference. I fixed the command to ignore it: https://github.com/2m/arch-pkgbuild-builder/commit/c136561234e610f0226c0afd0bee79a5a7ff774a#diff-6f9d41d046756f0ddc2fcee0626bdb50100d12b88f293734eff742818e03efa2R77

However building paru still fails with a rust error: https://github.com/2m/arch-pkgbuild-builder/runs/2826704346 Looks like a mismatch of rust version.

Anyways, I released https://github.com/2m/arch-pkgbuild-builder/releases/tag/v1.17 with the whitespace fix.

adi-g15 commented 3 years ago

Thank you for fixing it ! 🙂:+1: