VOOZH about

URL: https://qiita.com/nwtgck/items/36feb22bb194f0c01493

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


👁 Image
5

Go to list of users who liked

0

Share on X(Twitter)

Share on Facebook

Add to Hatena Bookmark

More than 5 years have passed since last update.

@nwtgck(Ryo Ota)

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

5
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

原因

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

参考

5

Go to list of users who liked

0
0

Go to list of comments

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

Go to list of users who liked

0