More than 5 years have passed since last update.
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に書いてあるような気がします。
(たしかに、をした覚えがあるようなないような)
参考
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme
