Kaimon cache path w/ XDG_CACHE_HOME handling inconsistent #42
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
kahliburke/Kaimon.jl#42
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
If
XDG_CACHE_HOMEis set, Kaimon uses it as the cache path as is rather than appending "kaimon" to it:should be something like this:
You can see that Kaimon was just putting things in the base cache dir previously instead of in its own folder:
There is also a second location used by the Gate which I addressed in the pull request.
I'll look into this, thank you.
Fixed for the 2.0.0 release on the
2.0-integrationbranch (commit1cf20a5).kaimon_cache_dir()now appends akaimon/subdirectory underXDG_CACHE_HOMEinstead of using it verbatim, matchingkaimon_config_dir()'s handling — sokaimon.db,sock/,sessions.jsonetc. no longer scatter into the shared cache root. Thanks @csvance for the clear report and proposed fix.Note: no automatic data migration — existing XDG users will get a fresh
$XDG_CACHE_HOME/kaimon/dir; prior files in the cache root can be moved in or left to regenerate.