Skip to content

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

Closed
@phadej

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions