yay v10.0.4.r24.g3b2bb28 - libalpm v12.0.2
Describe the bug
A clear and concise description of what the bug is.
Execute yay --aururl "https://aur.tuna.tsinghua.edu.cn" --save and terminal returns "\yay, this problem can be solved. I am using Manjaro on RaspberryPi 4.
To Reproduce
Steps to reproduce the behavior:
Execute yay --aururl "https://aur.tuna.tsinghua.edu.cn" --save in terminal.
Expected behavior
A clear and concise description of what you expected to happen.
Replace AUR URL with mirror site and save changes to file to make it also be applied next time.
Output
Terminal output:
# zhanghua @ raspberrypi in ~ [17:04:46]
$ yay --aururl "https://aur.tuna.tsinghua.edu.cn" --save
<nil>
yay config:
# zhanghua @ raspberrypi in ~ [17:05:47]
$ yay -Pg
{
"aururl": "https://aur.archlinux.org",
"buildDir": "/home/zhanghua/.cache/yay",
"absdir": "/home/zhanghua/.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": true,
"diffmenu": true,
"editmenu": false,
"combinedupgrade": false,
"useask": false,
"batchinstall": false
}
Seems that runtime.ConfigPath is not filled on next branch
On v10.0.4 tag runtime.ConfigPath is loaded on MakeRuntime function
On next branch we don't have more MakeRuntime function, and the runtime config is loaded on NewConfig function but ConfigPath is not set
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.
The problem continue in
$ yay --version
yay v10.1.0 - libalpm v12.0.2
I've try set my yay preferences with:
yay --sortby popularity --topdown --nodiffmenu --save
<nil>
same here. --save returns
As a temporary workaround, first run
mkdir ~/.config/yay
sudo mkdir ~/.config/yayyay -P -g and Copy the output of the command !!sudo vim ~/.config/yay/config.jsonsudo chmod 777 ~/.config/yay/config.jsonvim ~/.config/yay/config.json and Paste the content you just copiedyay --aururl "https://aur.tuna.tsinghua.edu.cn" --saveyay -P -g to check if it works
yay --sortby popularity --topdown --nodiffmenu --save
I tested this on an existing config.json and a clean .config folder without issues on yay 10.1.1, closing for now
Most helpful comment
As a temporary workaround, first run
mkdir ~/.config/yay