From: Dmitry Makhnin <d.makhnin@yadro.com>
To: <openembedded-core@lists.openembedded.org>
Cc: Dmitry Makhnin <d.makhnin@yadro.com>
Subject: [PATCH] go.bbclass: support gitsm fetcher
Date: Fri, 17 May 2024 15:43:40 +0300 [thread overview]
Message-ID: <20240517124340.2668637-1-d.makhnin@yadro.com> (raw)
Implement gitsm fetcher support along with the git one.
This makes go.bbclass properly handle source code with git submodules.
Signed-off-by: Dmitry Makhnin <d.makhnin@yadro.com>
---
meta/classes-recipe/go.bbclass | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta/classes-recipe/go.bbclass b/meta/classes-recipe/go.bbclass
index d32509aa6d..052fdd69ba 100644
--- a/meta/classes-recipe/go.bbclass
+++ b/meta/classes-recipe/go.bbclass
@@ -87,7 +87,7 @@ python go_do_unpack() {
fetcher = bb.fetch2.Fetch(src_uri, d)
for url in fetcher.urls:
- if fetcher.ud[url].type == 'git':
+ if fetcher.ud[url].type == 'git' or fetcher.ud[url].type == 'gitsm':
if fetcher.ud[url].parm.get('destsuffix') is None:
s_dirname = os.path.basename(d.getVar('S'))
fetcher.ud[url].parm['destsuffix'] = os.path.join(s_dirname, 'src', d.getVar('GO_IMPORT')) + '/'
--
2.30.2
reply other threads:[~2024-05-17 12:45 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240517124340.2668637-1-d.makhnin@yadro.com \
--to=d.makhnin@yadro.com \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).