Ticket #868 (closed defect: duplicate)

Opened 22 months ago

Last modified 22 months ago

cabal clean crash

Reported by: Phyx Owned by:
Priority: normal Milestone:
Component: cabal-install tool Version: 1.8.0.6
Severity: normal Keywords:
Cc: Difficulty: unknown
GHC Version: Platform:

Description

When using a custom build type, clean wil always crash (atleast on windows). Cabal leaves cleaning up to the compiled Setup.exe, which itself resides in sdist, so an attempt to clean *all* files in sdist requires Setup.exe to be deleted aswell. And since a program can't delete itself, this will always result in the following crash:

PS C:\Users\Phyx\Documents\Haskell\cabaltest> cabal clean cleaning... Error while removing dist/: DeleteFile? "dist\\setup\\setup.exe": permission denied (Access is denied.)

Attachments

Setup.lhs Download (103 bytes) - added by Phyx 22 months ago.
Test.cabal Download (1.0 KB) - added by Phyx 22 months ago.
Test.hsc Download (40 bytes) - added by Phyx 22 months ago.

Change History

Changed 22 months ago by Phyx

Changed 22 months ago by Phyx

Changed 22 months ago by Phyx

Changed 22 months ago by Phyx

  • status changed from new to closed
  • resolution set to duplicate

This seems to be a duplicate of 303, which is already 3 years old..

 http://hackage.haskell.org/trac/hackage/ticket/303

Note: See TracTickets for help on using tickets.