yay icon indicating copy to clipboard operation
yay copied to clipboard

Yay fails when there is no master branch

Open theaino opened this issue 1 year ago • 5 comments

Affected Version

yay v12.3.5 - libalpm v14.0.0

Describe the bug

When there is no main branch in the remote repo (like in conan), yay failes to install.

Reproduction Steps

  1. Install a package where it's repo has no main branch.

Expected behavior

It just installs normally.

Output

aino@arch ~ » yay -S conan                                                                                                                                                                           1 ↵
AUR Dependency (1): conan-2.2.2-1
:: (1/1) Downloaded PKGBUILD: conan
 -> error merging /home/aino/.cache/yay/conan: fatal: No current branch.
aino@arch ~ » yay -S --debug conan                                                                                                                                                                   1 ↵
[DEBUG:runtime] packages to query [conan]
[DEBUG:runtime] rpc request https://aur.archlinux.org/rpc?arg%5B%5D=conan&type=info&v=5
AUR Dependency (1): conan-2.2.2-1
:: PKGBUILD up to date, skipping download: conan
[DEBUG:runner] capturing /usr/bin/git -C /home/aino/.cache/yay/conan reset --hard HEAD
[DEBUG:runner] capturing /usr/bin/git -C /home/aino/.cache/yay/conan merge --no-edit --ff
 -> error merging /home/aino/.cache/yay/conan: fatal: No current branch.

theaino avatar Apr 21 '24 09:04 theaino

Maybe important to mention, when installing manually (makepkg -si) it works.

theaino avatar Apr 21 '24 11:04 theaino

Same issue and error message here, can't update mhwd-nvidia, manual build works fine. have you found any fix?

MrLixam avatar May 07 '24 03:05 MrLixam

@MrLixam I have an idea but nothing solid; maybe gonna fix this today or tomorrow

theaino avatar May 07 '24 06:05 theaino