Closed Scotty-Trees closed 3 years ago
Hey @Scotty-Trees ,
yay -Y --gendb
creates the file ~/.cache/yay/vcs.json
with the latest SHA of the origin for each -git
package. It gives a starting point for yay
to start checking devel upgrades. At this point for yay
it does think that you have the latest upstream version installed (even if you do not).
When you run yay -Syu --devel
, yay checks again all of the remote SHAs against ~/.cache/yay/vcs.json
and proposes the package for upgrade if they differ.
Hopefully if you use yay on a regular basis once the upstream SHA of a -git package has changed, it will be proposed by yay, you'll install it and yay will update its entry in ~/.cache/yay/vcs.json
.
It's a matter of eventual consistency so yay -Y --gendb
just tells yay to assume all those -git
packages have their latest version installed.
I haven't checked how this is handled on pamac's side but traditional AUR helpers generally treated -git
packages as normal packages or as packages that needed updated on every run
Thanks very much for the quick reply! So that I get this straight, since today was the first time that I ran yay -Y --gendb
anything after that then yay
will see the git update, but since I just did it for the first time today, everything looks up to date. So essentially the next time that popsicle-git
has an update, that is when yay
will for sure see the update I take it? Do I understand that correctly?
Thanks very much for the quick reply! So that I get this straight, since today was the first time that I ran
yay -Y --gendb
anything after that thenyay
will see the git update, but since I just did it for the first time today, everything looks up to date. So essentially the next time thatpopsicle-git
has an update, that is whenyay
will for sure see the update I take it? Do I understand that correctly?
Exactly that :+1:
Ah okay no worries, that's good to know. Definitely helps to now have a better understanding of how yay
works. I think since it's not really an issue/bug, but more by design I think it's okay if you close this issue then? Thanks for helping me better understand yay
I appreciate the work you do for it, it's a lovely AUR helper for sure! Thanks again for you help with this :)
Affected Version
yay v10.3.1 - libalpm v13.0.0
Describe the bug
I use
pamac-aur
to check what updates are coming out throughout the week, (I know you can also usecheckupdates
in a terminal as well). Because of this I knew I had a few AUR updates to take care of. So I updated my system today viasudo pacman -Syu
and everything went smoothly. I knew I had 3 AUR packages to update thanks topamac-aur
, so I ranyay
and only 2 AUR packages were updated oddly enough. I’ve updated my mirrors and I’ve used pamac’s ‘Refresh Databases’ option so I know I’m up to date at least on that end of things.My problem is
pamac-aur
is showing I have one AUR update (the package is popsicle-git), butyay
says I’m fully up to date and there’s nothing to do. I’m a bit confused at the moment. I've searched around a few of the closed tasks to see if I could attempt to figure it out, but so far I haven't gotten much luck.Reproduction Steps
1.Using
pamac-aur
to search for updates shows there's one new AUR git package to update. Closepamac-aur
yay
andyay -Syu --devel
to update the AUR git package returns nothing.Expected behavior
When an AUR update for a package is available, I usually run
yay
to help me update any AUR packages to the latest version. This is my first time using an AUR git package update, so I'm struggling at the moment to get it to update, any help or assistance would be most appreciated since I'd prefer to update my system all from the terminal instead of relying onpamac-aur
for that.Output
Hopefully some relevant outputs to assist this matter. I ran
yay -Y --gendb
andyay -Syu --devel
but thepopsicle-git
package wasn't updated for some reason.Some additional screenshots to show that
pamac-aur
shows an update, butyay
says there is nothing to do.It's almost the weekend, so I do hope you enjoy your time off if you have some! This is a minor bug/issue in my opinion so it's not like a big huge rush to get this all figured out right away. With that said though I will always be available to assist you in this issue, feel free to respond/ping me anytime and I'll respond accordingly. Thank you for taking the time to read this and thank you very much also for making an awesome AUR helper like
yay
it's a great tool to use while I'm using EndeavourOS.