-
Notifications
You must be signed in to change notification settings - Fork 698
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
Cabal should not store any data in %AppData% #4597
Comments
If we do this change, we should communicate it to HP maintainers, because they'll need to fix /cc @randen |
👍 . Unfortunately, if we want people to not upgrade Cabal and suddenly discover everything is missing, some fiddly transition code will need to be written. Maybe writing the transition code is not worth it. |
We don't have to strictly migrate the data, if the old data is left as is, and cabal just uses the new directory, then we could just emit a warning and instruct the users to move the folder. Even if they don't the packages are still registered with cabal's resolvers won't know of them but that'll only mean some packages will get re-installed. But unless I'm mistaken, nothing will strictly break will it? |
We've traditionally used Somewhat related, a related change for other operating systems would be #680 (XDG compliance) |
(This issue mentioned cabal's data; does that mean general "data" including the binary? It sounds like it, but just want to be sure. If so, then I will submit the HP issue to track.) |
@randen Yes, I think it covers installed executables. I think the biggest problem with unceremoniously changing the install location is when people try to |
@hvr I think @randen yes, I'm not worried at all about the actual package metadata, it's more the binaries. Remember that especially on Windows these are statically linked behemoths. And with @ezyang yes, the paths would be a slight issue. I think we can communicate the change loudly enough though. |
Duplicate of #1857 |
Also, this is related to #680 that is now being worked on, so I'm taking the liberty to close it to focus the discussion in two places instead of ten. |
On Windows, cabal seems to put it's data in
%AppData%
, which is not the right place for such data.Instead it should use
%LOCALAPPDATA%
.%AppData%
on machines which are domain joined with roaming profiles will be synced back and forth to the domain controller on login/logout. They also eat away at your profile quota while the information isn't very useful on another machine.Also since the folder contains binaries it may be subjected to virus scans further slowing syncing.
The text was updated successfully, but these errors were encountered: