[Hackage] #303: cabal clean: Error while removing dist/: dist/setup: removeDirectory: unsatisified constraints (Directory not empty)

Hackage trac at galois.com
Mon Mar 9 09:44:29 EDT 2009


#303: cabal clean: Error while removing dist/: dist/setup: removeDirectory:
unsatisified constraints (Directory not empty)
----------------------------+-----------------------------------------------
  Reporter:  simonmar       |        Owner:         
      Type:  defect         |       Status:  new    
  Priority:  normal         |    Milestone:         
 Component:  Cabal library  |      Version:  1.4.0.1
  Severity:  normal         |   Resolution:         
  Keywords:                 |   Difficulty:  normal 
Ghcversion:  6.8.3          |     Platform:         
----------------------------+-----------------------------------------------
Comment (by duncan):

 The problem here is with custom Setup.hs scripts that might want to do
 something for clean. A solution would be to be able to ask the Setup.hs to
 clean anything custom and let the calling tool (ie cabal-install)
 recursively delete the dist directory. On windows and nfs it's not easy
 for a program to delete itself and the directory it is running from.

 On the other hand, this kind of cooperation does not work well with custom
 build systems. See CustomBuildInterface.

-- 
Ticket URL: <http://hackage.haskell.org/trac/hackage/ticket/303#comment:1>
Hackage <http://haskell.org/cabal/>
Hackage: Cabal and related projects


More information about the cabal-devel mailing list