diff options
author | Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com> | 2021-10-28 14:41:43 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-11-01 11:12:08 +0000 |
commit | 1d8af6aed0a929f493d2c3e31b8d3ee3a70beb43 (patch) | |
tree | a29e1ccd9f402168ab4f612b686f6b15b7329eb2 /lib | |
parent | 9dcd9a3c671b24982aff9a994e31cb9f491471f5 (diff) | |
download | bitbake-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.py | 2 |
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\+ |