yay
yay copied to clipboard
yay creates a folder named ~ in the current directory
Affected Version
yay v11.2.0 - libalpm v13.0.1
Describe the bug
yay
is creating a directory named ~
containing the sub directories .cache/yay
in whatever directory you execute it.
Reproduction Steps
- Create a directory or use an existing directory
- Run
yay -Syu
to update pacman cache - Run
ls
and see a folder named~
exists
Expected behavior
The yay
command uses the .cache directory in $HOME
Output
dmills in 🌐 dmills-remote in /tmp
❯ mkdir yay
dmills in 🌐 dmills-remote in /tmp
❯ cd yay
dmills in 🌐 dmills-remote in /tmp/yay
❯ yay -Syu
[sudo] password for dmills:
:: Synchronizing package databases...
core is up to date
extra is up to date
community is up to date
multilib is up to date
endeavouros is up to date
:: Starting full system upgrade...
warning: openssh: ignoring package upgrade (8.8p1-1 => 9.0p1-1)
there is nothing to do
:: Searching databases for updates...
:: Searching AUR for updates...
-> openssh: ignoring package upgrade (8.8p1-1 => 9.0p1-1)
-> Missing AUR Packages: celt
-> Flagged Out Of Date AUR Packages: vmware-ovftool
there is nothing to do
dmills in 🌐 dmills-remote in /tmp/yay
❯ ls -lh
Permissions Size User Date Modified Name
drwxr-xr-x - dmills 19 Jul 12:46 ~
dmills in 🌐 dmills-remote in /tmp/yay
❯ ls -lhT
Permissions Size User Date Modified Name
drwxr-xr-x - dmills 19 Jul 12:46 .
drwxr-xr-x - dmills 19 Jul 12:46 └── ~
can't reproduce, can you share your ~/.config/yay/config.json
?
EDIT: as well if AURDEST
is present as a env var?
AURDEST is unset
I haven't made any changes to my config it started happening as much as I can tell after a recent update.
{
"aururl": "https://aur.archlinux.org",
"buildDir": "~/.cache/yay",
"absdir": "~/.cache/yay/abs",
"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": "ask",
"sudobin": "sudo",
"sudoflags": "",
"requestsplitn": 150,
"sortmode": 0,
"completionrefreshtime": 7,
"sudoloop": false,
"timeupdate": false,
"devel": false,
"cleanAfter": false,
"provides": true,
"pgpfetch": true,
"upgrademenu": true,
"cleanmenu": false,
"diffmenu": false,
"editmenu": false,
"combinedupgrade": false,
"useask": false,
"batchinstall": false
}
I'm not sure how the dirs got set to ~ but it appears it must not be expanding that