fix: check for XDG_CACHE_HOME#270
Conversation
pbrisbin
left a comment
There was a problem hiding this comment.
Nice fix, thanks.
This feels tricky (and low value) to unit test so I wouldn't worry about it. As long as it doesn't break current tests.
Actually, that's not true. Here is an existing test on this behavior: downgrade/test/aur_fallback/detect_aur_caches.t Lines 4 to 11 in 91395e6 I think it could be easy to add a case that runs with the XDG variable set and asserts that that takes precedence. |
|
Got more familiar w the tests so whipped up this |
|
done |
|
Thank you! |
Checklist
Description
Currently, if the user is using $XDG_CACHE_HOME which differs from $HOME/.cache, downgrade doesn't find anything
This makes it check both by default
(I've never worked with unit tests before so rather than mess up, set pr to draft)