yay cannot fully skip dependency checks, even with --mflags
Affected Version
yay v12.1.0 - libalpm v13.0.2
Describe the bug
Trying to install a package with vte3 listed as a makedep. The package in question works flawlessly CLI-only without vte3 so I'm trying to build it with Yay without touching the PKGBUILD (removing the makedepends=('vte3') line).
Reproduction Steps
- Find a package having an optional makedep (
amttermbeing an example). - Try to install it without the make(opt)deps:
yay -Syudd --mflags='--nodeps' amtterm - Yay still asks you to install
vte3. - After declining, Yay asks you again to install
vte3(?!).
Non-workarounds
yay -Syudd --mflags='--nodeps,--nocheck' amttermyay -Syudd --mflags='--nodeps' --assume-installed vte3 amtterm
Expected behavior
Some option to install a package without makedep(s). Possibly by only skipping the makedeps checks, not all of them, but that is an additional feature request (#2247). In case of amtterm no vte3 installation proposal should occur if such options are in effect, let alone two.
Also, I'd like to emphasize that --assume-installed is not a general solution for this issue, possibly not even a solution at all. It's more of an ugly workaround requiring hardcoding that can only prevent finding of a thorough solution. And it doesn't even work (for makepkg).
if --nodeps also applied to makedeps, would it fix the issue?
I think so.