aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorStefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com>2021-10-28 14:41:43 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-11-01 11:12:08 +0000
commit1d8af6aed0a929f493d2c3e31b8d3ee3a70beb43 (patch)
treea29e1ccd9f402168ab4f612b686f6b15b7329eb2 /lib
parent9dcd9a3c671b24982aff9a994e31cb9f491471f5 (diff)
downloadbitbake-1d8af6aed0a929f493d2c3e31b8d3ee3a70beb43.tar.gz
fetch2: npmsw: Add support for github prefix in npm shrinkwrap version
Signed-off-by: Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/bb/fetch2/npmsw.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/bb/fetch2/npmsw.py b/lib/bb/fetch2/npmsw.py
index cfdfdae06..879ba5de0 100644
--- a/lib/bb/fetch2/npmsw.py
+++ b/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\+