Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support latest sctk dependency model #17

Merged
merged 2 commits into from
Oct 31, 2024
Merged

Conversation

AyanSinhaMahapatra
Copy link
Member

@AyanSinhaMahapatra AyanSinhaMahapatra commented Oct 31, 2024

The following error was present when scanning a go binary with scancode-toolkit v32.3.0 because of model updates:

>>> packages = list(GolangBinaryHandler.parse(location="/home/ayansinha/nexB/downloads-audit/siemens/go-binaries/traefik"))
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/ayansinha/nexB/write_access/scancode-toolkit/venv/lib/python3.10/site-packages/go_inspector/binary.py", line 504, in parse
    yield from collect_go_package(location)
  File "/home/ayansinha/nexB/write_access/scancode-toolkit/venv/lib/python3.10/site-packages/go_inspector/binary.py", line 136, in _collect_go_package_from_data
    package_data.dependencies = list(collect_dependencies(deps))
  File "/home/ayansinha/nexB/write_access/scancode-toolkit/venv/lib/python3.10/site-packages/go_inspector/binary.py", line 149, in collect_dependencies
    yield dep_purl.as_dependent_package()
  File "/home/ayansinha/nexB/write_access/scancode-toolkit/venv/lib/python3.10/site-packages/go_inspector/binary.py", line 430, in as_dependent_package
    return models.DependentPackage(
TypeError: DependentPackage.__init__() got an unexpected keyword argument 'is_resolved'

This PR fixes the same, updates python version support, and bumps go-inspector to a new version 0.4.0

Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
@AyanSinhaMahapatra AyanSinhaMahapatra merged commit d62b372 into main Oct 31, 2024
6 checks passed
@AyanSinhaMahapatra AyanSinhaMahapatra deleted the fix-sctk-integration branch November 4, 2024 18:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant