Skip to content

cabal v2-install (local) executable is affected by default environment #6410

Closed

Description

@phadej

Describe the bug

default environment affects at least (local) executable installation.

To Reproduce

  1. Create an environment with e.g. aeson-1.4.5.0.
  2. Try to install an executable which requires ^>= aeson-1.4.6.0, e.g. cabal v2-install cabal-deps
    (its dependency, cabal-install-parsers, wants the latest aeson).
cabal: Could not resolve dependencies:
[__0] next goal: aeson (user goal)
[__0] rejecting: aeson-1.4.6.0 (constraint from user target requires
==1.4.5.0)
[__0] trying: aeson-1.4.5.0
[__1] trying: cabal-bundler-0.1 (user goal)
[__2] next goal: cabal-install-parsers (dependency of cabal-bundler)
[__2] rejecting: cabal-install-parsers-0.2, cabal-install-parsers-0.1
(conflict: aeson==1.4.5.0, cabal-install-parsers => aeson^>=1.4.6.0)

Expected behavior

Installation should just work.

System information

  • cabal-install-3.0.0.0

Activity

  1. added this to the 3.0.1.0 milestone on Dec 14, 2019
  2. added 3 commits that reference this issue on Dec 14, 2019
    82ad220
    b8ca8f0
    a99c7ec
  3. added a commit that references this issue on May 11, 2026
  4. added a commit that references this issue on May 14, 2026
  5. added a commit that references this issue on Oct 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions