Skip to content
New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Win permission denied on clean #1863

Closed
cchantep opened this issue May 13, 2014 · 5 comments
Closed

Win permission denied on clean #1863

cchantep opened this issue May 13, 2014 · 5 comments
Assignees

Comments

@cchantep
Copy link

After having downloaded sources from hackage in my user home, and trying cabal configure and cabal build, when I want to clean I get a 'permission denied' error (whereas I obviously own files, and have permissions as I created them).

``
cleaning...
Error while removing dist/: DeleteFile "dist\setup-wrapper\setup.exe": permission denied


Env: Win7, msys2, ghc7.8.2, cabal1.18
@cchantep
Copy link
Author

In the shell as the one from which invoking cabal, rm -rf dist perfectly works.

@kvanbere
Copy link

Could it be because the file is running somehow? On Windows you cannot delete a file if it belongs to a process which is currently being executed.

@cchantep
Copy link
Author

No

@23Skidoo
Copy link
Member

Could it be because the file is running somehow?

Actually yes, it looks like this happens only for build-type: Custom. Cabal invokes setup clean, which tries to delete itself and fails.

@23Skidoo
Copy link
Member

So we should move setup out of the way before running setup clean and then delete it ourselves.

23Skidoo added a commit to 23Skidoo/cabal that referenced this issue Oct 30, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants