On Thu, 15 Sep 2016, Anselm R Garbe <garb...@gmail.com> wrote: > Let's call the tool metasrc, it consists of a metafile that contains the > format: > > # comment > local/path/situation:git-url[#tag|ref|branch] > ...
[snip] > This has also the advantage, that in theory one could also deal with > other source control systems, if some repo is not available as git but > instead as hg or even just a tarball. Gets interesting from here. The metafile format would have to specify how to interpret the "*-url[#...]" part and invoke the correct helper tool. Something like: > some/local/path:scm:url#ref E.g. > vendor/asdf:git:https://github.com/asdf/asdf#master > vendor/qwer:svn:https://svn.example.com/qwer#r1234 Next, how do we handle extracting tarballs? In: > vendor/zxcv:tgz:http://ftp.example.com/pub/zxcv.tgz Assuming zxcv.tgz has contents: > zxcv/readme.txt > zxcv/zxcv.c How does this get extracted? Like this? > vendor/zxcv/zxcv/readme.txt > vendor/zxcv/zxcv/zxcv.c Or like this? > vendor/zxcv/readme.txt > vendor/zxcv/zxcv.c What if the "zxcv" in "vendor/zxcv" doesn't match the "zxcv" in zxcv.tgz? <3,K.