Skip to content

fix missing slash in fs_get_cache_directory()#7503

Merged
mofosyne merged 3 commits intoggml-org:masterfrom
ngxson:xsn/cache_missing_slash
May 25, 2024
Merged

fix missing slash in fs_get_cache_directory()#7503
mofosyne merged 3 commits intoggml-org:masterfrom
ngxson:xsn/cache_missing_slash

Conversation

@ngxson
Copy link
Copy Markdown
Contributor

@ngxson ngxson commented May 23, 2024

Follow up #7353

There is a bug when XDG_CACHE_HOME is set without a trailing slash, it produces the path: /home/USER/.cachellama.cpp instead of /home/USER/.cache/llama.cpp

Also use LOCALAPPDATA for Windows (as suggested by @cebtenzzre )

@ngxson ngxson requested review from cebtenzzre and ggerganov May 23, 2024 22:28
@mofosyne mofosyne added bugfix fixes an issue or bug Review Complexity : Low Trivial changes to code that most beginner devs (or those who want a break) can tackle. e.g. UI fix labels May 24, 2024
@mofosyne mofosyne added the merge ready A maintainer can use this label to indicate that they consider the changes final and ready to merge. label May 24, 2024
@mofosyne mofosyne merged commit 902184d into ggml-org:master May 25, 2024
Seunghhon pushed a commit to Seunghhon/llama.cpp that referenced this pull request Apr 26, 2026
* fix missing slash in fs_get_cache_directory()

* use LOCALAPPDATA for fs_get_cache_directory()

* better code style
phuongncn pushed a commit to phuongncn/llama.cpp-gx10-dgx-sparks-deepseekv4 that referenced this pull request Apr 28, 2026
* fix missing slash in fs_get_cache_directory()

* use LOCALAPPDATA for fs_get_cache_directory()

* better code style
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix fixes an issue or bug merge ready A maintainer can use this label to indicate that they consider the changes final and ready to merge. Review Complexity : Low Trivial changes to code that most beginner devs (or those who want a break) can tackle. e.g. UI fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants