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

Closed
bos opened this Issue May 24, 2012 · 1 comment

Comments

Projects
None yet
1 participant
Contributor

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

Contributor

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..

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

@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