diff options
author | Martin Jansa <Martin.Jansa@gmail.com> | 2022-12-28 16:30:51 +0100 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2023-03-12 10:12:20 +0100 |
commit | 8739abf2a458c4b4f783fa47eac9d7d976259349 (patch) | |
tree | 8c13accf51817198201eda4e7ed496065894f802 | |
parent | 1d4f6b630169f836662d614b7f93ca690e69b75d (diff) | |
download | openembedded-core-contrib-jansa/go.tar.gz |
create-go: more debugjansa/go
-rw-r--r-- | scripts/lib/recipetool/create_go.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/lib/recipetool/create_go.py b/scripts/lib/recipetool/create_go.py index f4059255b4..ddbd337c4a 100644 --- a/scripts/lib/recipetool/create_go.py +++ b/scripts/lib/recipetool/create_go.py @@ -124,16 +124,19 @@ class GoRecipeHandler(RecipeHandler): logger.warning("Import path should not start with %s %s" % ("http", "https")) return None + logger.warning("modulepath '%s'", modulepath) for srv in vcsPaths: m = srv[vcs.regexp].match(modulepath) - if vcs.pathprefix in srv: + if m and vcs.pathprefix in srv: if host == srv[vcs.pathprefix]: + logger.warning("host '%s' matching in vcs.pathprefix '%s'", host, srv[vcs.pathprefix]) _rootpath = m.group('root') _vcs = srv[vcs.vcs] _repourl = m.expand(srv[vcs.repo]) _suffix = m.group('suffix') break elif m and srv[vcs.schemelessRepo]: + logger.warning("regex match '%s' m '%s'", srv[vcs.regexp], m) _rootpath = m.group('root') _vcs = m[vcs.vcs] _repourl = m[vcs.repo] |