haskell / haskell/cabal

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

未关闭
#657 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
cabal-install: other old-milestone: ⊥ type: bug
主要语言
Haskell
星标
1.7k
派生
750
平均合并
4 天 3 小时
30 天内合并 PR
28

描述

(Imported from [Trac #665](http://hackage.haskell.org/trac/hackage/ticket/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.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。