Open RobertFlatt opened 2 years ago
The issue occurs because the internal list of custom recipes ctx.custom_recipes_paths
does not persist between toolchain build
occurrences.
The workaround is to build both custom recipes with the same toolchain build
:
toolchain build first_custom_recipe second_custom_recipe --add-custom-recipe recipes/first_custom_recipe --add-custom-recipe recipes/second_custom_recipe
For the same reason this will also fail:
toolchain clean first_custom_recipe
For the same reason toolchain status
does not list custom recipes.
The missing functionality could be implemented with a .db mapping built custom recipes to their directory.
Yeah. Absolutely agree. Marking as feature-request. Thank you for the detailed report.
Versions
Describe the bug
kivy-ios
commandtoolchain build...
fails on a custom recipe build, when that recipe depends on a previously built custom recipe. The error generated by second_custom_recipe build is:[INFO ] Using the bundled version for recipe 'first_custom_recipe'
The error message interpreted as the second_custom_recipe is looking for the first_custom_recipe as a bundled recipe, which it is not.
To Reproduce Use two custom recipes with the second depending on the first
Expected behavior https://github.com/kivy/kivy-ios#create-the-xcode-project where it says "Then click on Play, and enjoy"
Logs
Build first custom recipe:
Build second custom recipe
Additional context Add any other context about the problem here.