File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -153,6 +153,8 @@ def build_github_repo_url(purl):
153153 version_prefix = qualifiers .get ("version_prefix" , "" )
154154 repo_url = f"{ repo_url } /tree/{ version_prefix } { version } "
155155
156+ repo_url = repo_url .replace (" " , "+" )
157+
156158 return repo_url
157159
158160
Original file line number Diff line number Diff line change @@ -68,6 +68,7 @@ def test_purl2url_get_repo_url():
6868 "pkg:golang/gopkg.in/ldap.v3@v3.1.0" : "https://pkg.go.dev/gopkg.in/ldap.v3@v3.1.0" ,
6969 "pkg:cocoapods/AFNetworking@4.0.1" : "https://cocoapods.org/pods/AFNetworking" ,
7070 "pkg:cocoapods/MapsIndoors@3.24.0" : "https://cocoapods.org/pods/MapsIndoors" ,
71+ "pkg:github/facebook/sapling@0.2.20240718-145624%20f4e9df48" : "https://github.com/facebook/sapling/tree/0.2.20240718-145624+f4e9df48"
7172 }
7273
7374 for purl , url in purls_url .items ():
You can’t perform that action at this time.
0 commit comments