From e17d4895ca069d3d5b268f8be561c3651c132b5c Mon Sep 17 00:00:00 2001 From: Stefan Herbrechtsmeier Date: Thu, 28 Oct 2021 14:41:43 +0200 Subject: bitbake: fetch2: npmsw: Add support for github prefix in npm shrinkwrap version (Bitbake rev: 1d8af6aed0a929f493d2c3e31b8d3ee3a70beb43) Signed-off-by: Stefan Herbrechtsmeier Signed-off-by: Richard Purdie --- bitbake/lib/bb/fetch2/npmsw.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'bitbake') diff --git a/bitbake/lib/bb/fetch2/npmsw.py b/bitbake/lib/bb/fetch2/npmsw.py index cfdfdae060..879ba5de0f 100644 --- a/bitbake/lib/bb/fetch2/npmsw.py +++ b/bitbake/lib/bb/fetch2/npmsw.py @@ -131,6 +131,8 @@ class NpmShrinkWrap(FetchMethod): # Handle git sources elif version.startswith("git"): + if version.startswith("github:"): + version = "git+https://github.com/" + version[len("github:"):] regex = re.compile(r""" ^ git\+ -- cgit v1.2.3-54-g00ecf