Currently, the “Artifacts.toml” file requires each download entry to contain a “sha256” and a “url”. Including the compressed size of the tarball could be useful.
Some of the benefits are.
- It would be easier to tell if a package will download large artifacts just by looking at its git repo.
- If a bad url tries to download a huge file when the expected tarball is small, this can be used to quickly abort the download, instead of needing to wait until the whole sha256 can be calculated.
I think a new “size” field would need to be optional to be a non-breaking change.
Is this something that the Pkg.jl maintainers would be interested in supporting?