Skip to content

Remove config_home_path from config file and HoardeConfig #348

@seivan

Description

@seivan

A config file shouldn't have a path to itself. It defeats the purpose.
If you don't have a config file, the env or default config path should be used for defining it.
If you do have a config file, then changing the value in the config would be undefined behaviour because the new config file might have a different config_home_path.

Most software that have a path to the config doesn't have it in the file itself, they it compute it, based on env or other stuff, like default.

There's a lot of paths in the code base were a config file is written and it gets an argument for the path, sometimes direct path and sometimes a base path. This depends on #347 where there is a get_hoard_config_path() function that will compute the path (but not create it).

Fix: #349
Depends on: #347

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions