Closed emiliovesprini closed 4 years ago
@emiliovesprini *$IMPORT_CACHE
, you misspelled it in the title as $IMPORT_CASH
Fixed, thanks.
Ya, I'd like to support the XDG Base Directory spec. Pull request welcome if you feel like taking a stab at it, your diff looks pretty good to me already!
So you don't mind me changing the default dir? Be right back.
Having trouble making the tests pass, might take me a bit longer.
Note that Windows and macOS have different conventions for their cache dirs. import
should use these by default, if $XDG_CACHE_HOME
is not defined:
$HOME/.cache/import
$HOME/Library/Caches/import
$HOME/AppData/Local/import/Cache
but there's the obvious issue of backwards compatibility, so maybe this should be closed as wontfix.
Backwards compatibility isn't a concern in this case, since a cache directory by its nature is ephemeral - it would just have to re-download the cache files into the new directory.
Open up the pull request anyways, we can work through the errors there.
On Fri, Jul 17, 2020 at 2:44 PM Emilio Vesprini notifications@github.com wrote:
Having trouble making the tests pass, might take me a bit longer.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/importpw/import/issues/36#issuecomment-660350075, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAARMWCOZN5RWMYSCABGFW3R4DA3NANCNFSM4O6Q4KCQ .
Sorry I left you guys hanging, I got busy with school.
Peppering $HOME with hidden files and folders is a generally agreed upon anti-pattern (check here or here for more info) commonly fixed with the help of the XDG Base Directory spec.
A fix may be as easy as something like
but there's the obvious issue of backwards compatibility, so maybe this should be closed as wontfix.