diff mbox series

[5/5] go-mod-update-modules: include the generated files from the class

Message ID 20260922092411.262885-5-f_l_k@t-online.de
State New
Headers show
Series [1/5] gcr: initialize libgcrypt from the secret exchange | expand

Commit Message

Markus Volk Sept. 22, 2026, 9:23 a.m. UTC
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(-)
diff mbox series

Patch

diff --git a/meta/classes-recipe/go-mod-update-modules.bbclass b/meta/classes-recipe/go-mod-update-modules.bbclass
index 3a0f0a3377..bae9e47c0d 100644
--- a/meta/classes-recipe/go-mod-update-modules.bbclass
+++ b/meta/classes-recipe/go-mod-update-modules.bbclass
@@ -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