Skip to content

new-clean/v2-clean does not clean env files #5587

Closed

Description

@lspitzner

meaning that "build; clean; ghci" breaks:

> cabal-2.4.0.0 new-build
Resolving dependencies...
Build profile: -w ghc-8.6.1 -O1
[..]
> cabal-2.4.0.0 new-clean
> ghci
GHCi, version 8.6.1: http://www.haskell.org/ghc/  :? for help
Loaded package environment from $BUILDDIR/.ghc.environment.x86_64-linux-8.6.1
ghc: can't find a package database at $BUILDDIR/dist-newstyle/packagedb/ghc-8.6.1
> echo $?
1

Of course plainly deleting env files is not an option, because they may have been created manually, or by other tools.

Affects the latest cabal-2.4.0.0 release with any ghc-8+.

Activity

  1. added
    cabal-install: v2-build system
    on Sep 23, 2018
  2. added this to the 2.4.0.1 milestone on Sep 23, 2018
  3. added a commit that references this issue on Nov 23, 2018
    9cda341
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

    cabal-install: cmd/cleancabal-install: v2-build systemtype: enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions