-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
* core/core-load-paths.el: Support spacemacs-cache-directory from environment variables #16698
Conversation
This patch doesn't really fix any of the linked issues. The variable (even though it was |
fa8bf5d
to
1bb0639
Compare
Hi @bcc32 I had modified the patch toward your comments. Please help review again. Thanks, |
There's plenty of other variables whose defaults depend on the value of Reading the original issues more closely, I don't think actually making this variable customizable is really an appropriate solution here, and definitely merging this PR (if we do so) should not close those issues. Here are some concerns that this PR does not attempt to address, which I think are pretty valid:
|
As an aside, I think it would be good to reconsider most of the places where Spacemacs does all this Themes are able to provide variable settings, not just face definitions, and in doing so, the custom.el machinery will automatically provide for the ability of the user's customizations to override the theme defaults or the package defaults, regardless of load order. |
I think the only probable way to set these path params is the users env, there is already a spacemacs path env var used for that but it must be greatly improved. Starting from the given defaults Spacemacs can calculate its path variables. This must happen in the core as you don't know where your dotfile is when you need this information. Also we have to consider the request to make spacemacs xdg conform or at least provide a compatible mode. |
I had tracked The key concern in And for more elegant way to support custom the cache related variables, need very long works, but this PR can be a very small step to start the changes. |
My personal opinion: I actually think this PR makes things worse, because it advertises At least with |
d4aeeb8
to
098f8a7
Compare
098f8a7
to
78eac61
Compare
I had totally refactor the PR, please help review the change again. Thank you ! |
Hey @sunlin7, thanks for taking a fresh look at this issue. Just FYI, I don't think it's helpful to edit the original PR description just because it is closed---I found it quite surprising when I was trying to remind myself which of several PRs this was. It is useful for people who find this PR to be able to see the original context and intentions, and it is easy to just scroll down to the bottom to see the reasoning for the eventual resolution :) |
Hi @bcc32 Agree, and I had restored the original text and had update on the tail. Thanks. |
Fix #4018 #12127 #15499 by enable customizing the
spacemacs-cache-directory
.These three tickets are desiring a way to config the
spacemacs-cache-directory
to split the cache directory from default folder.This patch will support to change the cache directory with
SPACEMACSCACHE
orXDG_CACHE_HOME
.UPDATE: Drop this PR for uncertain change.