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

How can environment file get into invalid state? #8473

Closed
tomjaguarpaw opened this issue Sep 16, 2022 · 5 comments
Closed

How can environment file get into invalid state? #8473

tomjaguarpaw opened this issue Sep 16, 2022 · 5 comments
Labels
re: install --lib Concerning `cabal install --lib` type: bug

Comments

@tomjaguarpaw
Copy link
Member

tomjaguarpaw commented Sep 16, 2022

A user was having trouble with cabal and posted his environment file to haskell-cafe. It contains entries for ghc-8.4.4 and directory-1.3.7.1, which are mutually incompatible. Therefore cabal stopped working. I assume the environment file got into this state just through running cabal install and/or cabal install --lib rather than manually editing the environment file or using any other tooling. That's what the thread suggests at least.

If it did get this way through cabal, how is that possible? Can cabal really create an environment file with mutually incompatible packages in it?

@Mikolaj Mikolaj added type: bug re: install --lib Concerning `cabal install --lib` labels Sep 16, 2022
@Mikolaj
Copy link
Member

Mikolaj commented Sep 16, 2022

The user clearly states "cabal install --lib" has been involved.

@tomjaguarpaw
Copy link
Member Author

tomjaguarpaw commented Sep 16, 2022

Yes. Can cabal install --lib get the environment file into an invalid state?

@volkerwysk
Copy link

Hi! That user, that's me. Yes, I've just run cabal install and cabal install --lib. I haven't touched that environment file, or done any other tooling.

@ulysses4ever
Copy link
Collaborator

@tomjaguarpaw yes, this is a known problem, unfortunately. See #5559 (and if you're still curious #7373).

@tomjaguarpaw
Copy link
Member Author

Ah thank you! That resolves my question.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
re: install --lib Concerning `cabal install --lib` type: bug
Projects
None yet
Development

No branches or pull requests

4 participants