haskell / haskell/cabal

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

Đang mở
#657 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
cabal-install: other old-milestone: ⊥ type: bug
Ngôn ngữ chính
Haskell
Star
1.7k
Fork
750
Merge trung bình
4 ngày 3 giờ
Pull request đã merge (30 ngày)
28

Mô tả

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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.