Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

cabal clean crash #858

bos opened this Issue May 24, 2012 · 1 comment


None yet
1 participant

bos commented May 24, 2012

(Imported from Trac #868, reported by Phyx on 2011-08-04)

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
Error while removing dist/: DeleteFile? "dist\setup\setup.exe": permission denied (Access is denied.)


bos commented May 24, 2012

(Imported comment by Phyx on 2011-08-04)

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


@bos bos closed this May 24, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment