Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to ignore default config files #4457

Open
Flamefire opened this issue Feb 16, 2024 · 0 comments
Open

Add option to ignore default config files #4457

Flamefire opened this issue Feb 16, 2024 · 0 comments
Milestone

Comments

@Flamefire
Copy link
Contributor

Flamefire commented Feb 16, 2024

We should have an option (and env variable) like --disable-default-configfiles to not load config files from the default locations such as $HOME, $XDG_DATA_HOME, $XDG_CONFIG_DIRS

The trouble/problem I'm trying to solve: We have a build script for the cluster which uses --configfiles=global.cfg such that the EB configuration will be the same/as specified. But now a EB config in the users HOME or in one of the other default paths may still be used setting stuff that breaks the builds.

This is more troublesome as it isn't just a single folder in $HOME (which could be excluded automatically via --ignoreconfigfiles) but actually includes locations derived from lists of paths stored in multiple XDG env variables. E.g. $XDG_CONFIG_DIRS: /etc/xdg/xdg-cinnamon:/etc/xdg already adds 2(!) more locations searched for the EB config

Note: Care must be taken such that --show-config continues to work, as that AFAIK reparses the config with different config sources disabled and hence could accidentally disable this new option and show wrong results.

@boegel boegel added this to the 4.x milestone Feb 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants