]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
recipetool: Handle several go-import tags in go resolver
authorSven Schwermer <sven.schwermer@disruptive-technologies.com>
Thu, 11 Apr 2024 10:10:30 +0000 (12:10 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 23 Apr 2024 12:33:46 +0000 (13:33 +0100)
commit9c36a61e29359067165bddc7f2accdf2c4c8a761
treebf8759c2e619fb8fc241bdbc4df19bf6c91c865c
parent8f2e14ab6562a9a68819a960c66a258ea9dbe246
recipetool: Handle several go-import tags in go resolver

When dynamically resolving go modules, the HTML page may contain several
go-import meta tags. We must handle all and pick the correct one based
on the module name. An example for such a behaviour is
gonum.org/v1/gonum:

<meta name="go-import" content="gonum.org/v1/exp git https://github.com/gonum/exp">
<meta name="go-import" content="gonum.org/v1/gonum git https://github.com/gonum/gonum">
<meta name="go-import" content="gonum.org/v1/hdf5 git https://github.com/gonum/hdf5">
<meta name="go-import" content="gonum.org/v1/netlib git https://github.com/gonum/netlib">
<meta name="go-import" content="gonum.org/v1/plot git https://github.com/gonum/plot">
<meta name="go-import" content="gonum.org/v1/tools git https://github.com/gonum/tools">

Signed-off-by: Sven Schwermer <sven.schwermer@disruptive-technologies.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
scripts/lib/recipetool/create_go.py