Not given opportunity to edit PKGBUILD when required packages not found
Affected Version
yay v9.4.4 - libalpm v12.0.2
Describe the bug
Attempting to build an AUR package that depends on a nonexistent package will error out before prompting the user to edit the PKGBUILD.
A good example (as of this writing) is yala, which depends on pydocstyle, which does not exist in the AUR or in the official package repositories.
Reproduction Steps
- Identify an AUR package with a nonexistent dependency
- Try to install it with
yay -S [packagename]
Expected behavior
An error is shown about the nonexistent package, and the user is given the opportunity to edit the PKGBUILD.
Actual behavior
An error is shown about the nonexistent package, and yay exits.
Output
$ yay -S yala
==> Error: Could not find all required packages:
pydocstyle (Wanted by: yala)
$ yay -S aur/yala
==> Error: Could not find all required packages:
pydocstyle (Wanted by: yala)
Configuration
{
"aururl": "https://aur.archlinux.org",
"buildDir": "/home/swooshy/.cache/yay",
"absdir": "/home/swooshy/.cache/yay/abs",
"editor": "",
"editorflags": "",
"makepkgbin": "makepkg",
"makepkgconf": "",
"pacmanbin": "powerpill",
"pacmanconf": "/etc/pacman.conf",
"redownload": "no",
"rebuild": "no",
"batchinstall": false,
"answerclean": "NotInstalled",
"answerdiff": "",
"answeredit": "",
"answerupgrade": "",
"gitbin": "git",
"gpgbin": "gpg",
"gpgflags": "",
"mflags": "",
"sortby": "name",
"searchby": "name-desc",
"gitflags": "",
"removemake": "no",
"sudobin": "sudo",
"sudoflags": "",
"requestsplitn": 150,
"sortmode": 0,
"completionrefreshtime": 7,
"sudoloop": true,
"timeupdate": false,
"devel": true,
"cleanAfter": false,
"provides": true,
"pgpfetch": true,
"upgrademenu": true,
"cleanmenu": true,
"diffmenu": true,
"editmenu": true,
"combinedupgrade": false,
"useask": false
}
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This still seems to be an issue. Go away stalebot
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
go away stalebot
PKGBUILD editing is only supported in yay -Bi