5
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Haskell Stackでエラー "openFile: inappropriate type (Is a directory) when using mirror " が出るときの対処法

Posted at

解決したいエラー

Haskellのstackを使っていて、以下のエラーが出たときの対処法です。

Exception /Users/ユーザー名/.stack/indices/Hackage/hackage-security-lock: openFile:
inappropriate type (Is a directory) when using mirror https://s3.amazonaws.com/hackage.fpcomplete.com/

stack testを打っときに出ましたが、他のサブコマンドでも起こるエラーだと思います。)

解決法

以下のように、ディレクトリを消してしまえば、解決しました。

rmdir $HOME/.stack/indices/Hackage/hackage-security-lock

原因

タイミング悪くCtrl-cをした後に起こるというようなことが、以下のissueに書いてあるような気がします。
(たしかに、Ctrl-cをした覚えがあるようなないような)

参考

5
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?