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

Change SCANOSS thread using -c option #151

Merged
merged 1 commit into from
Feb 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/fosslight_source/_help.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
-s <scanner>\t Select which scanner to be run (scancode, scanoss, all)
-j\t\t\t Generate raw result of scanners in json format
-t <float>\t\t Stop scancode scanning if scanning takes longer than a timeout in seconds.
-c <core>\t\t Select the number of cores to be scanned with ScanCode.
-c <core>\t\t Select the number of cores to be scanned with ScanCode or threads with SCANOSS.
--no_correction\t Enter if you don't want to correct OSS information with sbom-info.yaml
--correct_fpath <path> Path to the sbom-info.yaml file"""

Expand Down
2 changes: 1 addition & 1 deletion src/fosslight_source/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ def run_scanners(path_to_scan, output_file_name="", write_json_file=False, num_c
print_matched_text, format, called_by_cli,
time_out, correct_mode, correct_filepath)
if selected_scanner == 'scanoss' or selected_scanner == 'all' or selected_scanner == '':
scanoss_result = run_scanoss_py(path_to_scan, output_file_name, format, True, write_json_file)
scanoss_result = run_scanoss_py(path_to_scan, output_file_name, format, True, write_json_file, num_cores)
if selected_scanner in SCANNER_TYPE:
spdx_downloads = get_spdx_downloads(path_to_scan)
merged_result = merge_results(scancode_result, scanoss_result, spdx_downloads)
Expand Down
Loading