On Friday, 24 February 2017 at 11:22:34 UTC, Sönke Ludwig wrote:
I used the waiting time during the backup upload to prepare a PR for a mirror mode: https://github.com/dlang/dub-registry/pull/187

Would be good if someone could have a look. Once this is merged, anyone can run this on a server using `./dub-registry --mirror https://code.dlang.org/` and then forward incoming requests using a reverse proxy to http://127.0.0.1:8005.

In the current form, this will enable manual fallback in the form of users specifying --registry=https://some.code.dlang.mirror on the DUB command line. In the future we can then keep a list of official mirrors as DNS entries (maybe of the form mirror1.dub.pm) and let DUB use those automatically.

Awesome work!
I setup a testing instance at alpha.dub.pm, so in case someone wants to give it a try with DUB directly, you can use sth. like


dub fetch --registry=http://alpha.dub.pm/ -v mir-algorithm

Reply via email to