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

Confusion situation when linking ./dist/setup/setup is interrupted #657

Open
bos opened this issue May 24, 2012 · 1 comment
Open

Confusion situation when linking ./dist/setup/setup is interrupted #657

bos opened this issue May 24, 2012 · 1 comment
Labels
cabal-install: other old-milestone: ⊥ Moved from https://github.com/haskell/cabal/milestone/5 type: bug
Milestone

Comments

@bos
Copy link
Contributor

bos commented May 24, 2012

(Imported from Trac #665, reported by @dcoutts on 2010-04-25)

If one accidentally interrupts cabal when it's linking ./dist/setup/setup then you can end up with the file existing it not being executable.

This leads to a confusing situation for the user. Running cabal install or cabal configure will fail silently. Running with -v indicates that something returns exit code 127. This corresponds to a permission error when trying to execute ./dist/setup/setup

Two improvements could be made:

  • Report the failure to execute ./dist/setup/setup
  • If ghc is interrupted when creating ./dist/setup/setup, cabal should delete the file, if it exists. That way, cabal will recompile on the next invocation.
@bos
Copy link
Contributor Author

bos commented May 24, 2012

(Imported comment by @kosmikus on 2010-04-25)

See also #799.

@andreabedini andreabedini added the old-milestone: ⊥ Moved from https://github.com/haskell/cabal/milestone/5 label Oct 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cabal-install: other old-milestone: ⊥ Moved from https://github.com/haskell/cabal/milestone/5 type: bug
Projects
None yet
Development

No branches or pull requests

2 participants