-
Hi, I'm currently working on a project that still uses git submodules as layers. The switch to managed layers is planned but still a ways off. My use case is CI-related. When building this project in the CI, I handle the initial git checkout manually because the current build may require changes that are spread over several SCMs, e.g. a merge request in the main repo which can only build successfully with the changes from two other merge requests, one from a repo in a layer and one from a repo that a recipe depends on. Assume I already have a method to define these dependencies and can process them in the CI. I then need to distinguish between the SCMs that will be checked out by bob, for which I will write the appropriate So my main question is: is there a way to list the layers that bob knows about incl. nested layers? Ideally, this would work for managed as well as unmanaged layers. With managed layers enabled, I would greatly appreciate any insights and pointers, thanks very much. :) (Side note: in the future this distinction between layers and other SCMs will probably still be necessary to figure out whether to add an entry to Versions
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
I think there are different aspects to this question. First of all, you're right that there is currently no nice way to list layers. I guess this can be improved rather easily. The main question is, what information should be listed is addition to the layer name and in which format. Some machine-readable format(s) are probably advisable. But for your use case there might be a chicken-and-egg problem. Bob iteratively checks out nested layers. So it is not always possible to list all layers before having fetched the first batch of layers. Could that be a problem? Do we need to make this "interruptible" so that you get the chance to amend the |
Beta Was this translation helpful? Give feedback.
That should not be too hard.