summaryrefslogtreecommitdiffstats
path: root/classes
diff options
context:
space:
mode:
authorBruce Ashfield <bruce.ashfield@gmail.com>2025-12-06 15:36:46 +0000
committerBruce Ashfield <bruce.ashfield@gmail.com>2025-12-08 20:57:44 -0500
commitd59326817be4799a01bcc3885bf61c6dafcfeb71 (patch)
treec184d5d6c57f94aa2595763f745ada7dfa3b3a35 /classes
parentb4dfb683a95398e89428311287d8a32583a75c6c (diff)
downloadmeta-virtualization-d59326817be4799a01bcc3885bf61c6dafcfeb71.tar.gz
go-mod-discovery: move patching after discovery build
When updating a SRCREV and then running discovery, we expect that some patches will fail. We don't want that to block discovery as these patches are not normally ADDING dependencies that would be found. So we move discovery before patch and patch failures can be dealt with on a full build. Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Diffstat (limited to 'classes')
-rw-r--r--classes/go-mod-discovery.bbclass7
1 files changed, 5 insertions, 2 deletions
diff --git a/classes/go-mod-discovery.bbclass b/classes/go-mod-discovery.bbclass
index d57a7d38..87cd9def 100644
--- a/classes/go-mod-discovery.bbclass
+++ b/classes/go-mod-discovery.bbclass
@@ -263,7 +263,9 @@ Hint: Set GO_MOD_DISCOVERY_SRCDIR to the directory containing go.mod"
263 echo "" 263 echo ""
264} 264}
265 265
266addtask discover_modules after do_patch 266# Run after do_unpack but NOT after do_patch - patches often fail during uprevs
267# and are rarely needed for discovery (they typically fix runtime behavior, not dependencies)
268addtask discover_modules after do_unpack
267do_discover_modules[depends] = "${PN}:do_prepare_recipe_sysroot" 269do_discover_modules[depends] = "${PN}:do_prepare_recipe_sysroot"
268do_discover_modules[network] = "1" 270do_discover_modules[network] = "1"
269do_discover_modules[nostamp] = "1" 271do_discover_modules[nostamp] = "1"
@@ -432,7 +434,8 @@ python do_discover_and_generate_setdeps() {
432 pass 434 pass
433} 435}
434 436
435addtask discover_and_generate after do_patch 437# Run after do_unpack but NOT after do_patch - patches often fail during uprevs
438addtask discover_and_generate after do_unpack
436do_discover_and_generate[depends] = "${PN}:do_prepare_recipe_sysroot" 439do_discover_and_generate[depends] = "${PN}:do_prepare_recipe_sysroot"
437do_discover_and_generate[network] = "1" 440do_discover_and_generate[network] = "1"
438do_discover_and_generate[nostamp] = "1" 441do_discover_and_generate[nostamp] = "1"