Open maikf opened 5 years ago
Thanks for flagging this. There’s a TODO for moving from shelling out to tar(1)
to decompressing in Go, at which point we might change what’s supported. That doesn’t mean we can’t update the docs, though, and the other URL schemes should definitely be documented :)
https://github.com/distr1/distri/blob/c7d304084c0b55b92f96b99d01080e1bbe53890b/pb/build.proto#L156-L157 talks about only supporting https and tar.gz, but running
egrep -H '^source:' pkgs/*/build.textproto | perl -nE 'say /https?.+\.tar\.(\w+)"/ ? $1 : "ERR: $_"' | sort -u
reveals it also supports plain http as a transport and lzma, bzip2, and xz compression when it comes to tarballs. deb packages are supported, too, and then there are the virtual(?) protocols empty:// and distri+gomod://.
I don't think the additional protocols are documented yet, at least not over at
docs/building.asciidoc
.