Yay: Yay doesn't create config json

Created on 10 Sep 2018  路  9Comments  路  Source: Jguer/yay

I run the latest yay-git and it creates a folder ~/.config/yay but it doesn't create a json config file

Most helpful comment

Yay using the default settings no longer creates a config json. Using the --save option (for example yay -Syu --devel --combinedupgrade --save ) will create config.json

All 9 comments

Yay using the default settings no longer creates a config json. Using the --save option (for example yay -Syu --devel --combinedupgrade --save ) will create config.json

Thank you

Why doesn't it create one by default ?

When defaults are changed in yay it makes it simpler to push the new defaults to users, avoids useless writes to the system and sometimes we break stuff 8.1115 and loading the default settings if not customized helps unbreak it. These are the advantages I can think at the top of my head

@Jguer you should really make that more obvious that, when some --answerX parameter is specified without an actual package operation, nothing will get configured if --save is not specified.

Programs don't tend to remember their command line options, so I don't think there should be any expectations for them to.

However, --save and the flags that it applies to are all documented anyway.

@Jguer It would be useful to document the existence and default location of a configuration file in the man page. I had no idea what I should create in that folder to configure yay, and I didn't actually want to update my system just now, so I can't run yay <stuff> --save.

and I didn't actually want to update my system just now, so I can't run yay --save.

yay --sudoloop --save for example will save that to the config. It shouldn't update your system. --save doesn't require an actual update operation to be used.

Regardless I believe we do document the location.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

captn3m0 picture captn3m0  路  4Comments

AdrienLemaire picture AdrienLemaire  路  3Comments

ixevix picture ixevix  路  3Comments

mmirate picture mmirate  路  3Comments

nivaca picture nivaca  路  4Comments