-
-
Notifications
You must be signed in to change notification settings - Fork 14.1k
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-install 1.24 attempts to create /homeless-shelter/.cabal/config causing builds to break #16144
Comments
I typically set |
Does this issue still exist? |
The issue still exists: If you write a Nix package that runs I opened a Cabal issue. If they're not interested in fixing it there, then I think we ought to reopen this as a documentation issue here. |
Why would anyone call |
Because one didn't know you could do that! Either way, documentation issue? 😃 |
This issue has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/testing-haskell-projects-that-use-homeless-shelter-up/7540/2 |
Issue description
It appears to me that a number of cabal-install commands in cabal install 1.24 have a side effect of attempting to create
~/.cabal/config
which gets expanded to/homeless-shelter/.cabal/config
which fails. For example, installingghcjs
fails withSteps to reproduce
I am not entirely sure. Many Haskell libraries install just fine. I think the issue only occurs with things like ghcjs which attempt to invoke
cabal-install
itself.This is the patch to cabal-install which I believe is responsible:
haskell/cabal@3bb8c7a
In particular,
wrapperAction
is changed to callloadConfigOrSandbox
haskell/cabal@3bb8c7a#diff-53e6b83dd13dd8fb7781bc0ce3e6b36bL282
and
loadConfig
is responsible for trying to create~/.cabal/config
.A second data point is my
cabalsdist
helper:https://github.com/stepcut/cabalsdist
Previous I was able to use it in my
default.nix
to ensure that only files listed in the.cabal
file were added to the src .tar.gzBut that also started failing with an error about not being able to create
/homeless-shelter/.cabal/config
.I have no suggestions for a fix or a work around at this time.
The text was updated successfully, but these errors were encountered: