I run the latest yay-git and it creates a folder ~/.config/yay but it doesn't create a json config file
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.
Most helpful comment
Yay using the default settings no longer creates a
config json. Using the --save option (for exampleyay -Syu --devel --combinedupgrade --save) will createconfig.json