yay
yay copied to clipboard
vcs.json not being updated or created
Affected Version
11.0.1.r0.g52efaeb-1
Describe the bug
When running yay -Y --gendb
, it is not updating / creating ~/.cache/yay.vcs.json
. Running yay -Sua --devel
reads that list and reports the same updates no matter what version of the packages are installed. Removing vcs.json
then shows no updates and does not recreate it. However, installing a new VCS package does add the package to it. Removing all entries from the file makes no difference.
Reproduction Steps
See above.
Expected behavior
Self-expanatory.
Output
❯ yay -Pg
{
"aururl": "https://aur.archlinux.org",
"buildDir": "/home/yochanan/.cache/yay",
"editor": "",
"editorflags": "",
"makepkgbin": "makepkg",
"makepkgconf": "",
"pacmanbin": "pacman",
"pacmanconf": "/etc/pacman.conf",
"redownload": "no",
"rebuild": "no",
"answerclean": "",
"answerdiff": "",
"answeredit": "",
"answerupgrade": "",
"gitbin": "git",
"gpgbin": "gpg",
"gpgflags": "",
"mflags": "",
"sortby": "votes",
"searchby": "name-desc",
"gitflags": "",
"removemake": "true",
"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,
"batchinstall": false
}
I can't reproduce this on my other laptop, so it may be some configuration issue specific to this machine and not an issue with Yay itself. I've tried removing ~/.config/yay/
and ~/.cache/yay/
to no avail.
Is there anything that could affect this? Something in my Git configuration or something?
It's started to work again, I can't explain it. I'll close this for now.
False alarm, no it didn't. It only remembers packages I build with yay
. Anything I build manually it still thinks there's a newer commit when I've already built it with that commit. It's happening on both my machines.
I might have the same bug, my desktop does not create vcs.json when running yay -Y --gendb
nor does it seem to check if any updates are actually available. On the other hand my laptop that also runs yay v11.0.2 - libalpm v13.0.1
has no such problems and correctly updates git packages.
As an example:
drone ~ 2$ ls .cache/yay/
completion.cache.old
drone ~ 2$ ls -la .cache/yay/
total 630
drwxr-xr-x 2 drone drone 3 Nov 4 11:35 .
drwxr-xr-x 25 drone drone 28 Jul 1 17:16 ..
-rw-r--r-- 1 drone drone 1827374 Apr 9 2021 completion.cache.old
drone ~ 2$ yay -Y --gendb
:: Querying AUR...
-> Missing AUR Packages: dwm-local dwmblocks-git
-> Orphaned AUR Packages: icestorm-git
-> Flagged Out Of Date AUR Packages: python-d2l
:: PKGBUILD up to date, Skipping (50/51): (omitted the pkgs)
:: (0/1) Downloaded PKGBUILD: st
drone ~ 2$ ls -la .cache/yay/
total 630
drwxr-xr-x 2 drone drone 3 Nov 4 11:35 .
drwxr-xr-x 25 drone drone 28 Jul 1 17:16 ..
-rw-r--r-- 1 drone drone 1827374 Apr 9 2021 completion.cache.old
drone ~ 2$ yay --version
yay v11.0.2 - libalpm v13.0.1
And my config.json:
{
"aururl": "https://aur.archlinux.org",
"buildDir": "/mnt/zfs/pacman/aur/build/yay_build",
"editor": "",
"editorflags": "",
"makepkgbin": "makepkg",
"makepkgconf": "",
"pacmanbin": "pacman",
"pacmanconf": "/etc/pacman.conf",
"redownload": "no",
"rebuild": "no",
"answerclean": "no",
"answerdiff": "no",
"answeredit": "",
"answerupgrade": "",
"gitbin": "git",
"gpgbin": "gpg",
"gpgflags": "",
"mflags": "",
"sortby": "votes",
"searchby": "name-desc",
"gitflags": "",
"removemake": "yes",
"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": false,
"combinedupgrade": false,
"useask": false,
"batchinstall": false
}
Do you actually have any -git packages installed?
I do, namely neovim-git which I know from my laptop should come up often enough for updates.