]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
create-go: more debug jansa/go
authorMartin Jansa <Martin.Jansa@gmail.com>
Wed, 28 Dec 2022 15:30:51 +0000 (16:30 +0100)
committerMartin Jansa <Martin.Jansa@gmail.com>
Sun, 12 Mar 2023 09:12:20 +0000 (10:12 +0100)
scripts/lib/recipetool/create_go.py

index f4059255b45e68a5c8f2eada3c578f3612cd7c61..ddbd337c4ac664ce3ae88964c1b63329a1df9fa1 100644 (file)
@@ -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]