Skip to contentSkip to conversation

externalsrc: Pass through npmsw URIs in SRC_URI

PATCH New Mike Crowe 1 participant 1 message Feb 25, 2021

lore
Share & tools
lore

Mike Crowe

author
#0 lore raw

PATCH 1/1 externalsrc: Pass through npmsw URIs in SRC_URI

NPM shrinkwrap files need to stay in SRC_URI even when using externalsrc so that npm_do_fetch can run to fetch the required dependencies.

---
 meta/classes/externalsrc.bbclass | 1 +
 1 file changed, 1 insertion(+)
meta/classes/externalsrc.bbclass +1 -0
index 64e94e3301..c7b2bf2f49 100644
@@ -68,6 +68,7 @@ python () {
             url_data = fetch.ud[url]
             parm = url_data.parm
             if (url_data.type == 'file' or
+                    url_data.type == 'npmsw' or
                     'type' in parm and parm['type'] == 'kmeta'):
                 local_srcuri.append(url)
 
Signature · 1 line
2.20.1