-
|
Is there an opportunity to list orphaned recipes, i.e., recipes in the recipes directory that are independent of any root recipe? We use a workflow with multiple recipes for different versions of the same software module or application in parallel. Now, we want to remove some of the older versions' recipes and try to identify the complete recipe tree of older module versions that only depend on outdated application (root) recipes to be removed. Our first idea was to remove the desired application (root) recipes first and then remove all module recipes, which got orphaned afterwards. Perhaps there is another way to identify the recipe trees to be removed. We know that there is an extensive query language to specify paths to Bob packages. However, it's hard to see how this could help here. |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 1 reply
-
|
The path query language is used to find packages and not recipes. But it can still be the first step into this direction. There is the query-recipe command that is intended to get the file names of all involved classes and recipes of a package. Unfortunately, it does not understand the generic paths yet. But that to query the YAML files of all packages. It will output the file names of all used recipes (and classes). This file name list can then be compared to all existing recipes. The set difference is probably exactly what you need. |
Beta Was this translation helpful? Give feedback.
-
Do you mean If I understand this correctly, the aim of this procedure is to obtain two lists of recipe file names that can be compared to identify the recipe files to remove. But actually, we need more precise information, since many recipe files contain several recipes (recipe variants) defined with |
Beta Was this translation helpful? Give feedback.
-
|
Okay, I understand. Currently implemented Bob commands, like Looks like a new feature. If you're planning to implement such a new command, we'd certainly appreciate it. 🙂 I tested its prototype provided with #649, and I can confirm that this would fill the gap for identifying orphaned recipes. Maybe the new command could also provide an option such as |
Beta Was this translation helpful? Give feedback.
-
|
So we now have an |
Beta Was this translation helpful? Give feedback.
-
|
Great, thanks. |
Beta Was this translation helpful? Give feedback.
So we now have an
ls-recipescommand that lists recipes. Together with the--orphanedoption it prints all recipes that are not used as packages.