Skip to content

Commit

Permalink
Update scancode-toolkit and fix tests
Browse files Browse the repository at this point in the history
Signed-off-by: Ayan Sinha Mahapatra <[email protected]>
  • Loading branch information
AyanSinhaMahapatra committed Jun 19, 2024
1 parent f3385a8 commit 65e652d
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1110,13 +1110,13 @@
}
],
"for_packages": [
"pkg:npm/create-athena-partition@1.0.0?uuid=fixed-uid-done-for-testing-5642512d1758",
"pkg:npm/athena-express@6.0.4?uuid=fixed-uid-done-for-testing-5642512d1758",
"pkg:npm/[email protected]?uuid=fixed-uid-done-for-testing-5642512d1758",
"pkg:npm/[email protected]?uuid=fixed-uid-done-for-testing-5642512d1758",
"pkg:npm/[email protected]?uuid=fixed-uid-done-for-testing-5642512d1758",
"pkg:npm/[email protected]?uuid=fixed-uid-done-for-testing-5642512d1758",
"pkg:npm/[email protected]?uuid=fixed-uid-done-for-testing-5642512d1758",
"pkg:npm/[email protected]?uuid=fixed-uid-done-for-testing-5642512d1758",
"pkg:npm/[email protected]?uuid=fixed-uid-done-for-testing-5642512d1758",
"pkg:npm/[email protected]?uuid=fixed-uid-done-for-testing-5642512d1758"
"pkg:npm/[email protected]?uuid=fixed-uid-done-for-testing-5642512d1758"
],
"emails": [],
"urls": [],
Expand Down
10 changes: 6 additions & 4 deletions scanpipe/tests/test_pipelines.py
Original file line number Diff line number Diff line change
Expand Up @@ -481,10 +481,12 @@ def _normalize_package_uids(self, data):
):
value = purl_with_fake_uuid(value)
if key == "for_packages" and value:
value = [
self.purl_fields_with_fake_uuid(package_uid, key)
for package_uid in value
]
value = sorted(
[
self.purl_fields_with_fake_uuid(package_uid, key)
for package_uid in value
]
)
if is_local_files and key in ("name", "namespace", "purl") and value:
value = self.purl_fields_with_fake_uuid(value, key)
normalized_data[key] = value
Expand Down
4 changes: 0 additions & 4 deletions scanpipe/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -1543,10 +1543,6 @@ class DiscoveredDependencyListView(
"field_name": "is_resolved",
"filter_fieldname": "is_resolved",
},
{
"field_name": "is_direct",
"filter_fieldname": "is_direct",
},
"for_package",
"resolved_to_package",
"datafile_resource",
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ install_requires =
# Docker
container-inspector==33.0.0
# ScanCode-toolkit
scancode-toolkit[packages] @ git+https://github.com/nexB/scancode-toolkit.git@ce8e0d1ddc9e8968958313e82481d46498d51f25
scancode-toolkit[packages] @ git+https://github.com/nexB/scancode-toolkit.git@ae22b45d23122df13ff5d6907a9bb6e117c63026
extractcode[full]==31.0.0
commoncode==31.2.1
# FetchCode
Expand Down

0 comments on commit 65e652d

Please sign in to comment.