Skip to content

Commit cc7d145

Browse files
committed
Use purl.name as package name for golang
See this: #749 (comment) Signed-off-by: Keshav Priyadarshi <[email protected]>
1 parent 9babdaf commit cc7d145

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

vulnerabilities/improvers/valid_versions.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -153,15 +153,6 @@ def get_inferences(self, advisory_data: AdvisoryData) -> Iterable[Inference]:
153153
fixed_purl=fixed_purl,
154154
)
155155
else:
156-
if purl.type == "golang":
157-
# Problem with the Golang and Go that they provide full path
158-
# FIXME: We need to get the PURL subpath for Go module
159-
versions_fetcher = self.versions_fetcher_by_purl.get(purl)
160-
if not versions_fetcher:
161-
versions_fetcher = GoproxyVersionAPI()
162-
self.versions_fetcher_by_purl[purl] = versions_fetcher
163-
pkg_name = versions_fetcher.module_name_by_package_name.get(pkg_name, pkg_name)
164-
165156
valid_versions = self.get_package_versions(
166157
package_url=purl, until=advisory_data.date_published
167158
)

0 commit comments

Comments
 (0)