Skip to content
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 v2-install --lib" uses the wrong directory for the global package environment on Windows #6565

Closed
aboichis opened this issue Feb 29, 2020 · 1 comment
Milestone

Comments

@aboichis
Copy link

Describe the bug
cabal writes the package environment file in the directory returned by getHomeDirectory.
GHC uses getAppUserDataDirectory.
These are the same on Linux, but different on Windows (%HOMEPATH% and %APPDATA% respectively)

To Reproduce
Steps to reproduce the behavior:

cabal v2-install --lib vector
ghci

Expected behavior
The package environment file should be created in the correct directory and ghci should load it on startup.

System information

  • Windows 10
  • cabal 3.0.0.0, ghc 8.6.5
@vituscze
Copy link
Contributor

I can't test the change right now, but something like this should make it match the GHC defaults: https://github.com/vituscze/cabal/commit/84a97d9bce6b725c70e6a4de3fb808c60986a2ff

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants