Commit 99a65c0
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>1 parent 1d0be84 commit 99a65c0
1 file changed
+6
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
211 | 211 | | |
212 | 212 | | |
213 | 213 | | |
| 214 | + | |
214 | 215 | | |
215 | 216 | | |
216 | | - | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
217 | 222 | | |
218 | 223 | | |
219 | 224 | | |
| |||
0 commit comments