Skip to content

Commit

Permalink
Change SCANOSS thread using -c option
Browse files Browse the repository at this point in the history
Signed-off-by: Wonjae Park <[email protected]>
  • Loading branch information
JustinWonjaePark committed Feb 29, 2024
1 parent 4314c57 commit cb6f05b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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

0 comments on commit cb6f05b

Please sign in to comment.