summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBruce Ashfield <bruce.ashfield@gmail.com>2025-12-06 18:59:51 +0000
committerBruce Ashfield <bruce.ashfield@gmail.com>2025-12-08 20:57:44 -0500
commitd2044c0e7b8e43b3abbe4c536d3e90d0faaadecf (patch)
tree5855cedfd0b2782301775c0ed31df1e277d60ffd
parent56db9d52a1d99f3de61b770ee696a3cdc97d6ded (diff)
downloadmeta-virtualization-d2044c0e7b8e43b3abbe4c536d3e90d0faaadecf.tar.gz
go-mod-vcs: missing go.mod is not a warning
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
-rw-r--r--classes/go-mod-vcs.bbclass3
1 files changed, 2 insertions, 1 deletions
diff --git a/classes/go-mod-vcs.bbclass b/classes/go-mod-vcs.bbclass
index cf583462..5ba6a775 100644
--- a/classes/go-mod-vcs.bbclass
+++ b/classes/go-mod-vcs.bbclass
@@ -301,7 +301,8 @@ python do_create_module_cache() {
301 continue 301 continue
302 302
303 # Fallback: if no go.mod found, use requested path 303 # Fallback: if no go.mod found, use requested path
304 bb.warn(f"No go.mod found for {requested_module} in {vcs_path}, using requested path") 304 # This is normal for some modules (e.g., pure Go stdlib-like packages)
305 bb.note(f"No go.mod found for {requested_module} in {vcs_path}, using requested path")
305 return requested_module, '' 306 return requested_module, ''
306 307
307 canonical_module_path, detected_subdir = detect_canonical_module_path(vcs_path, subdir, module_path) 308 canonical_module_path, detected_subdir = detect_canonical_module_path(vcs_path, subdir, module_path)