diff options
| author | Bruce Ashfield <bruce.ashfield@gmail.com> | 2025-12-06 15:36:46 +0000 |
|---|---|---|
| committer | Bruce Ashfield <bruce.ashfield@gmail.com> | 2025-12-08 20:57:44 -0500 |
| commit | d59326817be4799a01bcc3885bf61c6dafcfeb71 (patch) | |
| tree | c184d5d6c57f94aa2595763f745ada7dfa3b3a35 /classes | |
| parent | b4dfb683a95398e89428311287d8a32583a75c6c (diff) | |
| download | meta-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.bbclass | 7 |
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 | ||
| 266 | addtask 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) | ||
| 268 | addtask discover_modules after do_unpack | ||
| 267 | do_discover_modules[depends] = "${PN}:do_prepare_recipe_sysroot" | 269 | do_discover_modules[depends] = "${PN}:do_prepare_recipe_sysroot" |
| 268 | do_discover_modules[network] = "1" | 270 | do_discover_modules[network] = "1" |
| 269 | do_discover_modules[nostamp] = "1" | 271 | do_discover_modules[nostamp] = "1" |
| @@ -432,7 +434,8 @@ python do_discover_and_generate_setdeps() { | |||
| 432 | pass | 434 | pass |
| 433 | } | 435 | } |
| 434 | 436 | ||
| 435 | addtask discover_and_generate after do_patch | 437 | # Run after do_unpack but NOT after do_patch - patches often fail during uprevs |
| 438 | addtask discover_and_generate after do_unpack | ||
| 436 | do_discover_and_generate[depends] = "${PN}:do_prepare_recipe_sysroot" | 439 | do_discover_and_generate[depends] = "${PN}:do_prepare_recipe_sysroot" |
| 437 | do_discover_and_generate[network] = "1" | 440 | do_discover_and_generate[network] = "1" |
| 438 | do_discover_and_generate[nostamp] = "1" | 441 | do_discover_and_generate[nostamp] = "1" |
