Skip to content

[nix-local-build] Need new-style clean #2957

Closed

Description

@ezyang

A few bugs:

  1. "cabal clean" doesn't clean dist-newtyle. Maybe need a "cabal new-clean"?
  2. cabal clean obviously isn't going to respect projects

CC @dcoutts

Activity

  1. added
    cabal-install: v2-build system
    on Dec 17, 2015
  2. dcoutts commented on Dec 17, 2015

    @dcoutts
    Contributor

    What should it clean do you think? All the local packages and cached info? Or just one package, or ?

  3. ezyang commented on Dec 17, 2015

    @ezyang
    ContributorAuthor

    Current cabal clean just cleans one package (e.g. that happens if you use it in a sandbox?) so that's my inclination. Though I'm not sure.

  4. hvr commented on Dec 19, 2015

    @hvr
    Member

    Fwiw, I'd expect cabal new-clean to remove the dist-newstyle/ which may contain all sorts of executables and local artifacts (i.e. non-cabal-store artifacts)

  5. lspitzner commented on May 12, 2016

    @lspitzner
    Collaborator

    note that custom Setup.hs gets compiled into $PACKAGE/dist/.. even with new-build. so new-build clean might need to

    packages `forM_` \path -> rm -rf (path</>dist)
    

    as well. (sorry for the haskell/bash mixture, it is horrible.)

  6. added this to the milestone on Aug 24, 2016
  7. ezyang commented on Aug 24, 2016

    @ezyang
    ContributorAuthor

    Putting this low priority because the workaround is really simple (just delete dist-newstyle yourself.)

  8. gbaz commented on Oct 25, 2017

    @gbaz
    Collaborator

    Its irritating to discover the workaround -- this just hit me and I ended up here :-)

  9. added a commit that references this issue on Jun 11, 2018
    e931db4
  10. added a commit that references this issue on Jun 11, 2018
    e5f8dc3
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: v2-build systempriority: lowtype: enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions