[ feature ] Support global (configurational) pack.toml
outside the $PACK_DIR
#321
Labels
feature request
Request for new functionality
pack.toml
outside the $PACK_DIR
#321
Related to #316 and chez update problems (which is now may be a common case, since chez 10.1 is released).
When for some reason, e.g. because of updating Chez, we need to reinstall
pack
, it's easy to forget to backup$PACK_DIR/user/pack.toml
file before removing the pack dir. It would be handy if configuration would be stored separately, e.g. in$XDG_CONFIG_HOME/pack/pack.toml
or in$HOME/.config/pack/pack.toml
or somewhere else.Having this, we even can suggest running reinstallation script when
pack
is cannot be run due to version incompatibility.Implementationally, we can even join
$PACK_DIR/user/pack.toml
and$XDG_CONFIG_HOME/pack/pack.toml
when loading configs, and thus code for storing the current selected collection won't be changed, and everything still will work when no external config is present, or when$XDG_CONFIG_HOME
is unwritable.The text was updated successfully, but these errors were encountered: