Hi there.
For the past several days, "nimble refresh" has had problems:
$ nimble refresh
Downloading "Official" package list
Trying http://irclogs.nim-lang.org/packages.json...
Could not download: 502 Bad Gateway
Trying http://nim-lang.org/nimble/packages.json...
Done.
Looks like the regular location for packages.json is having network problems.
Also, that second mirror list for packages.json seems to be pretty out of date, it's missing many of the more recently-added packages.
To get an updated packages.json file - at the moment I have to do this:
wget https://raw.githubusercontent.com/nim-lang/packages/master/packages.json
cp packages.json ~/.nimble/packages_official.json
cp packages.json ~/.nimble/packages_temp.json
Also - I tried another workaround. I tried editing this file as per the nimble guidelines:
~/.config/nimble/nimble.ini
And then adding a section like this in, hopefully to force a mirror listing that works a bit better:
[PackageList]
name = "official"
url = "https://raw.githubusercontent.com/nim-lang/packages/master/packages.json"
However, "nimble update" didn't like that. Looks like nimble itself is compiled without SSL support:
$ nimble refresh
Reading from config file at /home/wizzardx/.config/nimble/nimble.ini
Downloading "official" package list
Trying http://raw.githubusercontent.com/nim-lang/packages/master/packages.json...
Traceback (most recent call last)
nimble.nim(962) nimble
nimble.nim(892) doAction
nimble.nim(97) update
nimble.nim(78) downloadList
httpclient.nim(569) downloadFile
httpclient.nim(495) getContent
httpclient.nim(482) get
httpclient.nim(449) request
httpclient.nim(426) request
Error: unhandled exception: SSL support is not available. Cannot connect over SSL. > [HttpRequestError]
Got any advice?
Yeah, I think it's this bug appearing again: https://github.com/nim-lang/Nim/issues/3223
Glad I implemented those fallback URLs in Nimble. Will upload a new packages.json as a temporary workaround.