Skip to content

cabal install --lib on master always brings base into scope #9672

Open
@sol

Description

@sol

Describe the bug
I just noticed that package environments created with cabal-3.10.2.1 always bring base into scope.

  1. Is this a bug, or intentional?
  2. If intentional, what is the rational?
  3. Is there a way to prevent this, reverting to the cabal-3.10.2.1 behavior?

To Reproduce

$ cabal-3.10.2.1 install --package-env=foo.env --lib relude && cat foo.env
package-db /home/sol/.local/state/cabal/store/ghc-9.8.1/package.db
package-id base-4.19.0.0-c1f2
package-id relude-1.2.1.0-99ccbd1e31593ddccbc7a9d9260492b913d75dae58e3f7684fb550a45d957235

vs

$ cabal-3.10.1.0 install --package-env=foo.env --lib relude && cat foo.env
clear-package-db
global-package-db
package-db /home/sol/.local/state/cabal/store/ghc-9.8.1/package.db
package-id relude-1.2.1.0-99ccbd1e31593ddccbc7a9d9260492b913d75dae58e3f7684fb550a45d957235

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions