-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When saving to an aggregate config, use fallback locations
We were previously assuming that there would always be a default config file (plain .netconfig in a non-system/global location) in the aggregate. This was problematic if you had opened a CLI app from the user's profile dir, which is even the default when running cmd, for example), since in that case there would be no default .netconfig, only the global config as the first entry. So we instead use a smarter probing with fallbacks in place so that we try: 1. Default config if any found 2. Non-local (.user) file next 3. Local (.user) file if none found. Fixes #51
- Loading branch information
Showing
4 changed files
with
73 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters