Skip to content

How can environment file get into invalid state? #8473

Closed

Description

@tomjaguarpaw

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?

Activity

  1. added
    re: install --lib
    on Sep 16, 2022
  2. Mikolaj commented on Sep 16, 2022

    @Mikolaj
    Member

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

  3. tomjaguarpaw commented on Sep 16, 2022

    @tomjaguarpaw
    MemberAuthor

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

  4. volkerwysk commented on Sep 16, 2022

    @volkerwysk

    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.

  5. ulysses4ever commented on Sep 16, 2022

    @ulysses4ever
    Collaborator

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

  6. tomjaguarpaw commented on Sep 16, 2022

    @tomjaguarpaw
    MemberAuthor

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    re: install --libtype: bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions