Skip to content

Commit 21585fe

Browse files
authored
Merge branch 'main' into logger_fix
2 parents 5dab29c + 50b13e9 commit 21585fe

File tree

5 files changed

+20
-21
lines changed

5 files changed

+20
-21
lines changed

.bumpversion.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
commit = True
33
tag = False
44
message = Bump version: {current_version} → {new_version}
5-
current_version = 2.1.3
5+
current_version = 2.1.4
66

77
[bumpversion:file:setup.py]
88
search = '{current_version}'

CHANGELOG.md

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
# Changelog
22

3+
## v2.1.4 (04/12/2024)
4+
## Changes
5+
## 🐛 Hotfixes
6+
7+
- Bug fix related to before assignment @soimkim (#203)
8+
9+
## 🔧 Maintenance
10+
11+
- Fix cyclonedx not supported @dd-jy (#204)
12+
13+
---
14+
315
## v2.1.3 (28/11/2024)
416
## Changes
517
## 🚀 Features
@@ -304,17 +316,3 @@
304316

305317
- Fix to check exclude for correcting oss info @dd-jy (#121)
306318
- Fix to find the sbom-info.yaml file with pattern @dd-jy (#120)
307-
308-
---
309-
310-
## v1.4.24 (19/05/2023)
311-
## Changes
312-
## 🚀 Features
313-
314-
- Add the correction with sbom-info.yaml @dd-jy (#119)
315-
316-
## 🐛 Hotfixes
317-
318-
- Fix the support default output format @dd-jy (#118)
319-
- Modify condition to check output format @bjk7119 (#116)
320-
- Fix the write_spdx bug @dd-jy (#117)

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ numpy>=1.22.2; python_version >= '3.8'
1515
npm
1616
requests
1717
GitPython
18-
cyclonedx-python-lib==8.5.0
18+
cyclonedx-python-lib==8.5.*;sys_platform=="linux"

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
if __name__ == "__main__":
1515
setup(
1616
name='fosslight_util',
17-
version='2.1.3',
17+
version='2.1.4',
1818
package_dir={"": "src"},
1919
packages=find_packages(where='src'),
2020
description='FOSSLight Util',

src/fosslight_util/output_format.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -183,14 +183,15 @@ def write_output_file(output_file_without_ext: str, file_extension: str, scan_it
183183
success, msg = write_opossum(result_file, scan_item)
184184
elif format == 'yaml':
185185
success, msg, _ = write_yaml(result_file, scan_item, False)
186-
elif format.startswith('spdx'):
186+
elif format.startswith('spdx') or format.startswith('cyclonedx'):
187187
if platform.system() == 'Windows' or platform.system() == 'Darwin':
188188
success = False
189189
msg = f'{platform.system()} not support spdx format.'
190190
else:
191-
success, msg, _ = write_spdx(output_file_without_ext, file_extension, scan_item, spdx_version)
192-
elif format.startswith('cyclonedx'):
193-
success, msg, _ = write_cyclonedx(output_file_without_ext, file_extension, scan_item)
191+
if format.startswith('spdx'):
192+
success, msg, _ = write_spdx(output_file_without_ext, file_extension, scan_item, spdx_version)
193+
elif format.startswith('cyclonedx'):
194+
success, msg, _ = write_cyclonedx(output_file_without_ext, file_extension, scan_item)
194195
else:
195196
if file_extension == '.xlsx':
196197
success, msg = write_result_to_excel(result_file, scan_item, extended_header, hide_header)

0 commit comments

Comments
 (0)