typelead/etlas

etlas cannot download index from cdnverify.eta-lang.org

janesser opened this issue · 2 comments

Hi, tried eta-lang for the first time. I had chosen the source-build from the tutorials, unfortunately there is an issue with the index download below.

As by below verbosity run it seems cdnverify.eta-lang.org is actually not the right URL to target.

$ rm ~/.etlas/packages/* -fR && etlas update -v3

no user package environment file found at /home/jan/projs/eta-lang/eta
Trying to locate mirrors via DNS for initial bootstrap of secure repository
'http://hackage.haskell.org/' ...
Searching for nslookup in path.
Found nslookup at /usr/bin/nslookup
/usr/bin/nslookup '-query=TXT' _mirrors.hackage.haskell.org
located 2 mirrors for http://hackage.haskell.org/ :
- http://hackage.fpcomplete.com/
- http://objects-us-west-1.dream.io/hackage-mirror/
Selected mirror http://hackage.haskell.org/
Downloading root
Searching for curl in path.
Found curl at /usr/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
/usr/bin/curl 'http://hackage.haskell.org/root.json' --output /tmp/transportAdapterGet16816927771714636915 --location --write-out '%{http_code}' --user-agent 'etlas/1.1.0.0 (linux; x86_64)' --silent --show-error --dump-header /tmp/curl-headers1957747793424238335.txt --header 'Cache-Control: no-transform'
Downloading the latest package lists from:
- hackage.haskell.org
- etlas.typelead.com
Searching for git in path.
Found git at /usr/bin/git
/usr/bin/git --version
Selected mirror http://hackage.haskell.org/
Downloading timestamp
/usr/bin/git is version 2.7.4
/usr/bin/git clone '--depth=1' 'http://github.com/typelead/etlas-index' /home/jan/.etlas/packages/etlas.typelead.com
/usr/bin/curl 'http://hackage.haskell.org/timestamp.json' --output /tmp/transportAdapterGet5965166491189641421 --location --write-out '%{http_code}' --user-agent 'etlas/1.1.0.0 (linux; x86_64)' --silent --show-error --dump-header /tmp/curl-headers10252023621350490027.txt --header 'Cache-Control: no-transform'
Downloading snapshot
/usr/bin/curl 'http://hackage.haskell.org/snapshot.json' --output /tmp/transportAdapterGet20448977631967513926 --location --write-out '%{http_code}' --user-agent 'etlas/1.1.0.0 (linux; x86_64)' --silent --show-error --dump-header /tmp/curl-headers13651805401540383426.txt --header 'Cache-Control: no-transform'
Downloading mirrors
/usr/bin/curl 'http://hackage.haskell.org/mirrors.json' --output /tmp/transportAdapterGet35005211521595368 --location --write-out '%{http_code}' --user-agent 'etlas/1.1.0.0 (linux; x86_64)' --silent --show-error --dump-header /tmp/curl-headers2947025671726956429.txt --header 'Cache-Control: no-transform'
Cannot update index (no local copy)
Downloading index
/usr/bin/curl 'http://hackage.haskell.org/01-index.tar.gz' --output /tmp/transportAdapterGet1497983152038664370 --location --write-out '%{http_code}' --user-agent 'etlas/1.1.0.0 (linux; x86_64)' --silent --show-error --dump-header /tmp/curl-headers1129566413184803526.txt --header 'Cache-Control: no-transform'
Updating binary package index.
creating /home/jan/.etlas/binaries/cdnverify.eta-lang.org
/usr/bin/curl 'https://cdnverify.eta-lang.org/index' --output /home/jan/.etlas/binaries/cdnverify.eta-lang.org/index4127760911424268980 --location --write-out '%{http_code}' --user-agent 'etlas/1.1.0.0 (linux; x86_64)' --silent --show-error --dump-header /home/jan/.etlas/binaries/cdnverify.eta-lang.org/curl-headers1911759956749241873.txt
Unable to download top-level index file. -
https://cdnverify.eta-lang.org/index

Assistance would be appreciated.

@janesser It's better if you build from master rather than stable. We have a release coming soon and we'll fix the problem with the old stable branch. We try to keep the master branch pretty stable so it's pretty safe to build from there.

Tried master branch as suggested.

  • unshallowed single-branch git clone
  • switched branch including submodules
  • install.sh again
    (index is reported broken one last time)
  • rm ~/.eta -fR && rm ~/.etlas -fR
  • etlas update

It works. Ticket can be closed.

p.s.:
if master is stable, all is fine. maybe adjust getting-started-guide in that direction.