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):
153
153
version_prefix = qualifiers .get ("version_prefix" , "" )
154
154
repo_url = f"{ repo_url } /tree/{ version_prefix } { version } "
155
155
156
+ repo_url = repo_url .replace (" " , "+" )
157
+
156
158
return repo_url
157
159
158
160
Original file line number Diff line number Diff line change @@ -68,6 +68,7 @@ def test_purl2url_get_repo_url():
68
68
"pkg:golang/gopkg.in/ldap.v3@v3.1.0" : "https://pkg.go.dev/gopkg.in/ldap.v3@v3.1.0" ,
69
69
"pkg:cocoapods/AFNetworking@4.0.1" : "https://cocoapods.org/pods/AFNetworking" ,
70
70
"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"
71
72
}
72
73
73
74
for purl , url in purls_url .items ():
You can’t perform that action at this time.
0 commit comments