@@ -10,7 +10,12 @@ do_update_modules[network] = "1"
# -licenses.inc will append LICENSE and LIC_FILES_CHKSUM with the found licenses
# in the modules.
#
-# These files are machine-generated and should not be modified.
+# These files are machine-generated and should not be modified. They are
+# included here so that a new recipe parses before they have been generated
+# by the first run of the update-modules task.
+
+include ${FILE_DIRNAME}/${BPN}-licenses.inc
+include ${FILE_DIRNAME}/${BPN}-go-mods.inc
python do_update_modules() {
import subprocess, tempfile, json, re, urllib.parse
A new recipe could not be parsed before its first update_modules run because it had to require the two generated files itself. Include them from the class instead, relative to the recipe, so a missing file is tolerated until the task has written it. AI-Generated: Uses Claude Code (Claude Fable 5.1) Signed-off-by: Markus Volk <f_l_k@t-online.de> --- meta/classes-recipe/go-mod-update-modules.bbclass | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)