You are not logged in.
I found that the AUR package I maintain has a update today. When I edited my PKGBUILD file, then submit, this error always shows as I cannot push changes.
Enumerating objects: 9, done.
Counting objects: 100% (9/9), done.
Delta compression using up to 8 threads
Compressing objects: 100% (5/5), done.
Writing objects: 100% (5/5), 1.17 KiB | 1.17 MiB/s, done.
Total 5 (delta 4), reused 0 (delta 0), pack-reused 0
remote: error: The following error occurred when parsing commit
remote: error: cf0362dcaf1fb736cb82fd7320384b33ae0108ab:
remote: error: missing source file: c
remote: error: hook declined to update refs/heads/master
To ssh://aur.archlinux.org/clash-for-windows-bin.git
! [remote rejected] master -> master (hook declined)
error: failed to push some refs to 'ssh://aur.archlinux.org/clash-for-windows-bin.git'
This is my PKGBUILD:
# Maintainer: AzureZeng <weedycn@outlook.com>
# Maintainer: Shiroko <hhx.xxm at gmail.com>
# Maintainer: Johnpoint <me at lvcshu.com>
pkgname=clash-for-windows-bin
pkgver=0.20.15
pkgrel=1
pkgdesc="A Windows/macOS/Linux GUI based on Clash and Electron."
arch=("x86_64" "aarch64")
url="https://github.com/Fndroid/clash_for_windows_pkg"
# logo_url="https://raw.githubusercontent.com/Dreamacro/clash/master/docs/logo.png"
logo_url="https://cdn.jsdelivr.net/gh/Dreamacro/clash@master/docs/logo.png"
install=clash-for-windows-bin.install
options=(!strip)
depends=('libxss' 'gtk3')
optdepends=(
'nftables: TUN mode required.'
'iproute2: TUN mode required.'
)
source=(
"clash.png::${logo_url}"
"clash-for-windows.desktop"
"cfw"
)
source_x86_64=(
"${pkgname}-${pkgver}-x86_64-linux.tar.gz::${url}/releases/download/${pkgver}/Clash.for.Windows-${pkgver}-x64-linux.tar.gz"
)
source_aarch64=(
"${pkgname}-${pkgver}-aarch64-linux.tar.gz::${url}/releases/download/${pkgver}/Clash.for.Windows-${pkgver}-arm64-linux.tar.gz"
)
sha256sums=('0d48a2ea1ee05ad4579b6e6996889548fa8a61a5ff6c85a32f7622cddfcb5782'
'c6329627357960f41d8c0a94c6ab5e96c32cb8ffda4bf845d075ef4200ebedf7'
'4c0a9de624905e3717b0dd4effa24fbf5c79ad28221b3b3b15a4a0aca4d47e03')
sha256sums_x86_64=('165c0ecee04cc83e68f2f7c542d68997b67ef26d381e8c429c1a169e17a82030')
sha256sums_aarch64=('6b42437df82675980864ea07445cfc032c94663910654ce97145fd25dfff79ed')
package() {
local parch=$(echo ${CARCH} | sed "s/x86_64/x64/;s/aarch64/arm64/")
cd "Clash for Windows-${pkgver}-${parch}-linux"
echo "Packaging application files. Please wait."
install -d "${pkgdir}/opt/${pkgname}"
cp -r ./* "${pkgdir}/opt/${pkgname}"
install -Dm 755 ../cfw ${pkgdir}/usr/bin/cfw
install -Dm 644 ../clash.png ${pkgdir}/usr/share/pixmaps/clash.png
install -Dm 644 ../clash-for-windows.desktop ${pkgdir}/usr/share/applications/clash-for-windows.desktop
}
I searched Arch Linux forum, then I got the conclusion that this error happens when the source file cannot be found.
However, there is not a file named 'c' in my PKGBUILD 'source' section, but I got an error 'missing source file: c'.
In the past, I can push changes easily, without problems. I am wondering whether this is a bug which happens after AUR backend updates. Or if there is some problem in my PKGBUILD?
Hint: I have tested this PKGBUILD and there is no errors.
Last edited by AzureZeng (2023-01-28 17:18:59)
Offline
This started happening to me as well. It seems like something got broken on the AUR side. For some reason, during the check, AUR doesn't take a source file name correctly anymore. Instead, it takes the first letter of it and checks if there is a file with this name. Obviously, there is no such file, the check fails.
UPD.
Link to the corresponding issue on the bug tracker: https://gitlab.archlinux.org/archlinux/ … issues/422
Last edited by zebradil (2023-01-27 12:01:07)
Offline