yay-git saves settings failed

Created on 27 Aug 2020  Â·  7Comments  Â·  Source: Jguer/yay

Affected Version




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-git with 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
}





Triage Bug

Most helpful comment

As a temporary workaround, first run
mkdir ~/.config/yay

All 7 comments

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

  1. create the directory : sudo mkdir ~/.config/yay
  2. run yay -P -g and Copy the output of the command !!
  3. create the file: sudo vim ~/.config/yay/config.json
  4. change file permissions: sudo chmod 777 ~/.config/yay/config.json
  5. run vim ~/.config/yay/config.json and Paste the content you just copied
  6. run yay --aururl "https://aur.tuna.tsinghua.edu.cn" --save
  7. run yay -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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

drrlvn picture drrlvn  Â·  4Comments

bazeeel picture bazeeel  Â·  4Comments

makeworld-the-better-one picture makeworld-the-better-one  Â·  3Comments

ixevix picture ixevix  Â·  3Comments

nivaca picture nivaca  Â·  4Comments