yay
yay copied to clipboard
Yay fails when there is no master branch
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
- 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.
Maybe important to mention, when installing manually (makepkg -si) it works.
Same issue and error message here, can't update mhwd-nvidia, manual build works fine. have you found any fix?
@MrLixam I have an idea but nothing solid; maybe gonna fix this today or tomorrow