alibuild icon indicating copy to clipboard operation
alibuild copied to clipboard

Support for "hierarchies of git repositories" as sources of recipes

Open sawenzel opened this issue 8 years ago • 4 comments

As a user I want to be able to create build recipes for situations in which a git repositories are hooked into mother git repositories (this is the case for instance for clang as part of llvm).

This is not supported by alibuild at the moment and currently requires the creation of a custom flat git repository (for llvm + clang) as a workaround.

sawenzel avatar Jan 12 '17 08:01 sawenzel

Agreed. We should have a way to combine more than one source into one checkout area, with all the goodies which alibuild provides in terms of caching sources and spotting differences to minimise rebuilds. One solution would be to introduce:

additional_source:
  "mount_point": "git repository url"

for example we could have:

sources: https://github.com/llvm/llvm
additional_sources:
  "modules/clang": "https://github.com/llvm/clang"

Am I missing anything?

ktf avatar Jan 12 '17 13:01 ktf

One question is how do we expect development packages to work. Will the user have to setup everything by himself? Or maybe this also requires support on alibuild init side.

ktf avatar Jan 12 '17 13:01 ktf

I think your suggestion should cover the most important (if not all) use cases. And yes, it would be very practical if alibuild init could checkout the complete developing area automatically. We should then probably assume that all of the sub-repositories have the same branch or tag names?

sawenzel avatar Jan 12 '17 13:01 sawenzel

We could use the usual syntax:

<repo>@<tag>

to mix match things.

ktf avatar Jan 12 '17 13:01 ktf