-
-
Notifications
You must be signed in to change notification settings - Fork 757
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wrong cache directories #7445
Comments
Likely the issue happened on Linux. It looks OK on macOS:
|
Hi. I would like to look into this. First step for me I guess would be replicating it on my device. (and looking at the relevant code) Could you mention the email thread subject so I can read more? |
#7392 (reply in thread) see there. |
I think this might be the offending line Lines 145 to 146 in 270b705
|
For comparison: https://github.com/borgbackup/borg/blob/1.2.3/src/borg/helpers/fs.py#L105 Yes, I think you maybe discovered an issue there (but that is only for the case when BORG_BASE_DIR is used, which is not the default use case). Also the tests need checking and extending - we have tests whether the new code behaves compatible to the old (1.2.x) code except for expected exceptions. |
I am running 8027c7b to test. I can't seem to replicate the behavior mentioned above. I get the usual Ubuntu 20.04 |
Will try the exact release. ... Same on release |
I tried Similarly on Fedora. So at-least on these two (and other Linux distros), |
Just ran manual testing on 1.2.3 vs 2.0.0b5, both with the BORG_BASE_DIR set. Can confirm the difference in behavior.
Seems like that is the issue here. |
Will look into the tests. |
Also add test for the same
Submitted a commit fixing the issue for Or is But it would make sense to do it for consistency, seeing as config's location perhaps should remain compatible between versions. |
Make sure the result of get_cache_dir matches pre and post borgbackup#7300 where desired
I think we should have config and cache dir work as compatible to previously ("legacy") as possible. |
Acknowledged. Have submitted commits for both. Open to feedback if some changes are required. |
Also add test for the same
Make sure the result of get_cache_dir matches pre and post borgbackup#7300 where desired
fix config dir compatibility issue, fixes #7445 - add tests - make sure the result of get_cache_dir matches pre and post #7300 where desired - harmonize implementation of config_dir_compat and cache_dir_compat tests Co-authored-by: nain <[email protected]>
From a discussion post:
this is likely due to us switching to
platformdirs
library and the related api change.config directories need also checking, there might be the same issue.
The text was updated successfully, but these errors were encountered: