Skip to content

Commit 95e215b

Browse files
Merge pull request #151 from fosslight/dev_scanoss_thread
Change SCANOSS thread using -c option
2 parents 4314c57 + cb6f05b commit 95e215b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/fosslight_source/_help.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
-s <scanner>\t Select which scanner to be run (scancode, scanoss, all)
2525
-j\t\t\t Generate raw result of scanners in json format
2626
-t <float>\t\t Stop scancode scanning if scanning takes longer than a timeout in seconds.
27-
-c <core>\t\t Select the number of cores to be scanned with ScanCode.
27+
-c <core>\t\t Select the number of cores to be scanned with ScanCode or threads with SCANOSS.
2828
--no_correction\t Enter if you don't want to correct OSS information with sbom-info.yaml
2929
--correct_fpath <path> Path to the sbom-info.yaml file"""
3030

src/fosslight_source/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ def run_scanners(path_to_scan, output_file_name="", write_json_file=False, num_c
260260
print_matched_text, format, called_by_cli,
261261
time_out, correct_mode, correct_filepath)
262262
if selected_scanner == 'scanoss' or selected_scanner == 'all' or selected_scanner == '':
263-
scanoss_result = run_scanoss_py(path_to_scan, output_file_name, format, True, write_json_file)
263+
scanoss_result = run_scanoss_py(path_to_scan, output_file_name, format, True, write_json_file, num_cores)
264264
if selected_scanner in SCANNER_TYPE:
265265
spdx_downloads = get_spdx_downloads(path_to_scan)
266266
merged_result = merge_results(scancode_result, scanoss_result, spdx_downloads)

0 commit comments

Comments
 (0)