yay icon indicating copy to clipboard operation
yay copied to clipboard

Not given opportunity to edit PKGBUILD when required packages not found

Open SwooshyCueb opened this issue 4 years ago • 4 comments

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

  1. Identify an AUR package with a nonexistent dependency
  2. 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
}

SwooshyCueb avatar Mar 25 '21 21:03 SwooshyCueb

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.

stale[bot] avatar Jul 25 '21 18:07 stale[bot]

This still seems to be an issue. Go away stalebot

SwooshyCueb avatar Jul 29 '21 19:07 SwooshyCueb

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.

stale[bot] avatar Nov 27 '21 02:11 stale[bot]

go away stalebot

SwooshyCueb avatar Nov 28 '21 03:11 SwooshyCueb

PKGBUILD editing is only supported in yay -Bi

Jguer avatar Feb 21 '23 01:02 Jguer