Closed justin8 closed 1 year ago
I think the bigger bug here is that yay appears to give no output whatsoever.
Please follow the template.
Thanks. The snarky response is appreciated. I've added the output, did that help clear things up for you?
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.
Please do not use stale bot, it makes the open or closed status of bugs meaningless. Closed bugs should mean:
When stale bot is in the mix, open/closed status is instead is a measurement of:
Furthermore, stale bot adds noise to GitHub notifications both from stale bot itself and people defending against stale bot. I received a meaningless stale bot notification just now, and anyone following this issue will now also get a notification from this comment.
Fixing this bug would be very useful to me when automating setup of new machines using e.g. Chezmoi scripts. Testing my scripts or using them to keep the list of installed packages consistent across existing machines is very time-consuming when I have to wait for yay to build packages that do not need to be built. Please leave the bug open.
For anyone looking to save time, I've been running yay --sync --needed --norebuild --noredownload --nocleanmenu --nodiffmenu --noremovemake
, but it still takes far more time than necessary and far more time than pacman.
@skyfaller you are right, it does generate a lot of noise, I've exempted bugs and triage from it.
https://github.com/Jguer/yay/commit/6c09d9bf335bd152aef3c608db00e14df5a036e5
Thanks for all the hard work @Jguer ! It's much appreciated
Affected Version
yay v10.2.3 - libalpm v13.0.0
Describe the bug
When using the
--needed
flag pacman will only install the listed packages if a newer version is available. Yay honours this for the repository packages, but for AUR packages it will download, build the package and then try to install it withpacman --needed
resulting in a no-op, but only after building every chosen AUR packageReproduction Steps
yay -S --needed spotify
Expected behavior
When the currently installed package and version available are equal, the package is not installed
Output