`etlas update` cannot read index
On Fedora 27, running etlas update yields
Downloading the latest package lists from:
- hackage.haskell.org
- etlas.org
etlas: Could not read index. Did you call 'checkForUpdates'?
stack update works fine.
The output for etlas update -v3 is
no user package environment file found at /home/mbrc/eta
Downloading the latest package lists from:
- hackage.haskell.org
- etlas.org
Searching for curl in path.
Found curl at /home/mbrc/anaconda3/bin/curl
Searching for powershell in path.
Cannot find powershell on the path
Searching for wget in path.
Found wget at /usr/bin/wget
Selected http transport implementation: curl
Updating index cache file
/home/mbrc/.etlas/packages/hackage.haskell.org/01-index.cache ...
Searching for git in path.
Found git at /usr/bin/git
/usr/bin/git --version
etlas: Could not read index. Did you call 'checkForUpdates'?
Have you installed and used etlas before? If so, try cleaning out ~/.etlas and try again.
This doesn't appear to be a proxy issue since it would've showed some failure on curl.
While this user was affected on Windows (https://github.com/typelead/eta/issues/487) I think it may be of use. I noticed that the curl being used was anaconda3/bin/curl - is it a special curl implementation?
Try out etlas update --http-transport=wget or etlas update --http-transport=plain-http and see if that fixes it.
Another check could be try the index url in a browser to discard that the proxy rules are banning the request
This was fixed by using a different transport - wget in this case and adding http-transport: wget in ~/.etlas/config.