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 <[email protected]> --- meta/classes-recipe/go-mod-update-modules.bbclass | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 -- 2.55.0
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#246399): https://lists.openembedded.org/g/openembedded-core/message/246399 Mute This Topic: https://lists.openembedded.org/mt/121371714/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
