Downloading package source code without using its git repo

If you have the package UUID and the tree hash of a version you can download a snapshot tarball at

https://pkg.julialang.org/package/$uuid/$tree

Not very human friendly but this is how the package manager gets packages and I suspect that you may be doing scripted analysis of source code. This also has the advantage of being perfectly cacheable if you’re maintaining a collection of source trees for analysis.

6 Likes