Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add XDG Base Directory Specification support (#7386)
### Motivation: As discussed in #6204, users would like to have a clean home directory. And in the discussions following the merge of #3430, it seems there is a willingness to adhere to the XDG spec, and support `~/.config/swiftpm`. ### Modifications: If the `XDG_CONFIG_HOME` environmental variable is defined, use `$XDG_CONFIG_HOME/swiftpm` as the root `dotSwiftPM` directory. ### Result: The symlinks that were previously stored in `~/.swiftpm` are now stored in `$XDG_CONFIG_HOME/swiftpm` when this variable is defined, therefore not cluttering the home directory of users. Closes #6204 --------- Co-authored-by: Max Desiatov <m_desiatov@apple.com>
- Loading branch information