Global download cache system
This introduces caching for artifact downloads, with a configurable global directory to keep them outside of workspaces (clones of the HDK)
This is especially interesting for people that either
- create lots of workspaces or
- have a slow internet connection.
(I am personally the most extreme case of 1 and a mild case of 2, with the download of the jaeger tarball taking about 3 minutes)
The already existing share pool for Mercurial clones is also made configurable in the same way.
Since rbenv
keeps a global directory of gems, and pip
has a global downloads cache, this leaves the case of Go modules
as the only cause of lengthy downloads. Advices welcome onto how to improve these.