Hi Josch,

On Tue Nov 12, 2024 at 4:53 PM CET, Johannes Schauer Marin Rodrigues wrote:
> Quoting Diederik de Haas (2024-11-12 14:35:11)
> > I prefer to have config files in ``~/.config/`` and thereby unclutter my 
> > home
> > dir. The XDG_CONFIG_HOME seems perfect for that
>
> the reason for ~/.sbuildrc is of course a historical one. Do you have a plan 
> in
> mind for how to best migrate the configuration path? We probably can never
> remove support for ~/.sbuildrc as that would break existing setups. What we 
> can
> do is to add support for ~/.config/sbuild/config.pl and then... do what? What
> if both files exist? Which one has precedence?
>
> Do you have something in mind?

1) add support for XDG dirs (which can/should include the possibility
   that XDG_CONFIG_HOME != ~/.config)
2) determine what should be the preferred location, XDG or ~/.sbuildrc
3) use the config file from the preferred location and if not present,
   then use the other location. Do not implement some automatic 'merge'
   strategy as that is extra work and likely only leads to problems
3) Don't do any automatic migration, let that up to the user
4) If at some point you want to deprecate an option (I guess that would
   be ~/.sbuildrc), then print an info/warning message in 3 when the
   fallback location is used.

HTH,
  Diederik

Attachment: signature.asc
Description: PGP signature

Reply via email to