fosslight-dependency 3.14.2__py3-none-any.whl → 3.14.3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- fosslight_dependency/_package_manager.py +1 -1
- fosslight_dependency/package_manager/Go.py +10 -0
- fosslight_dependency/package_manager/Unity.py +2 -0
- {fosslight_dependency-3.14.2.dist-info → fosslight_dependency-3.14.3.dist-info}/METADATA +9 -1
- {fosslight_dependency-3.14.2.dist-info → fosslight_dependency-3.14.3.dist-info}/RECORD +12 -12
- {fosslight_dependency-3.14.2.dist-info → fosslight_dependency-3.14.3.dist-info}/Apache-2.0.txt +0 -0
- {fosslight_dependency-3.14.2.dist-info → fosslight_dependency-3.14.3.dist-info}/LICENSE +0 -0
- {fosslight_dependency-3.14.2.dist-info → fosslight_dependency-3.14.3.dist-info}/LicenseRef-3rd_party_licenses.txt +0 -0
- {fosslight_dependency-3.14.2.dist-info → fosslight_dependency-3.14.3.dist-info}/MIT.txt +0 -0
- {fosslight_dependency-3.14.2.dist-info → fosslight_dependency-3.14.3.dist-info}/WHEEL +0 -0
- {fosslight_dependency-3.14.2.dist-info → fosslight_dependency-3.14.3.dist-info}/entry_points.txt +0 -0
- {fosslight_dependency-3.14.2.dist-info → fosslight_dependency-3.14.3.dist-info}/top_level.txt +0 -0
@@ -132,7 +132,7 @@ class PackageManager:
|
|
132
132
|
}}'''
|
133
133
|
try:
|
134
134
|
with open(const.SUPPORT_PACKAE.get(self.package_manager_name), 'a', encoding='utf8') as f:
|
135
|
-
f.write(allDeps)
|
135
|
+
f.write(f'\n{allDeps}\n')
|
136
136
|
ret = True
|
137
137
|
except Exception as e:
|
138
138
|
logging.warning(f"Cannot add the allDeps task in build.gradle: {e}")
|
@@ -10,6 +10,7 @@ import json
|
|
10
10
|
from bs4 import BeautifulSoup
|
11
11
|
import urllib.request
|
12
12
|
import re
|
13
|
+
import shutil
|
13
14
|
import fosslight_util.constant as constant
|
14
15
|
import fosslight_dependency.constant as const
|
15
16
|
from fosslight_dependency._package_manager import PackageManager, get_url_to_purl
|
@@ -24,6 +25,8 @@ class Go(PackageManager):
|
|
24
25
|
is_run_plugin = False
|
25
26
|
dn_url = 'https://pkg.go.dev/'
|
26
27
|
tmp_file_name = 'tmp_go_list.json'
|
28
|
+
go_work = 'go.work'
|
29
|
+
tmp_go_work = 'go.work.tmp'
|
27
30
|
|
28
31
|
def __init__(self, input_dir, output_dir):
|
29
32
|
super().__init__(self.package_manager_name, self.dn_url, input_dir, output_dir)
|
@@ -33,6 +36,8 @@ class Go(PackageManager):
|
|
33
36
|
def __del__(self):
|
34
37
|
if os.path.isfile(self.tmp_file_name):
|
35
38
|
os.remove(self.tmp_file_name)
|
39
|
+
if os.path.isfile(self.tmp_go_work):
|
40
|
+
shutil.move(self.tmp_go_work, self.go_work)
|
36
41
|
|
37
42
|
def parse_dependency_tree(self, go_deptree_txt):
|
38
43
|
for line in go_deptree_txt.split('\n'):
|
@@ -49,6 +54,9 @@ class Go(PackageManager):
|
|
49
54
|
def run_plugin(self):
|
50
55
|
ret = True
|
51
56
|
|
57
|
+
if os.path.isfile(self.go_work):
|
58
|
+
shutil.move(self.go_work, self.tmp_go_work)
|
59
|
+
|
52
60
|
logger.info("Execute 'go list -m -mod=mod -json all' to obtain package info.")
|
53
61
|
cmd = f"go list -m -mod=mod -json all > {self.tmp_file_name}"
|
54
62
|
|
@@ -64,6 +72,8 @@ class Go(PackageManager):
|
|
64
72
|
if ret_cmd_tree != 0:
|
65
73
|
self.parse_dependency_tree(ret_cmd_tree)
|
66
74
|
|
75
|
+
if os.path.isfile(self.tmp_go_work):
|
76
|
+
shutil.move(self.tmp_go_work, self.go_work)
|
67
77
|
return ret
|
68
78
|
|
69
79
|
def parse_oss_information(self, f_name):
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: fosslight-dependency
|
3
|
-
Version: 3.14.
|
3
|
+
Version: 3.14.3
|
4
4
|
Summary: FOSSLight Dependency Scanner
|
5
5
|
Home-page: https://github.com/fosslight/fosslight_dependency_scanner
|
6
6
|
Author: LG Electronics
|
@@ -153,6 +153,14 @@ In this user guide, you can see how to install the FOSSLight Dependency Scanner
|
|
153
153
|
<td>X</td>
|
154
154
|
<td>X</td>
|
155
155
|
</tr>
|
156
|
+
<tr>
|
157
|
+
<td>Unity</td>
|
158
|
+
<td>Unity</td>
|
159
|
+
<td>Library/PackageManager/ProjectCache</td>
|
160
|
+
<td>O</td>
|
161
|
+
<td>O</td>
|
162
|
+
<td>X</td>
|
163
|
+
</tr>
|
156
164
|
</tbody>
|
157
165
|
</table>
|
158
166
|
|
@@ -1,7 +1,7 @@
|
|
1
1
|
fosslight_dependency/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
2
2
|
fosslight_dependency/_analyze_dependency.py,sha256=f66gNPSluuDqx0e_7iyIuoSC_HNjpSitL_e1lak6kEA,3872
|
3
3
|
fosslight_dependency/_help.py,sha256=7B-B-j8IXuZhhoeuRvcbj5AiyGQmqg6qMbv8zbDl95c,2730
|
4
|
-
fosslight_dependency/_package_manager.py,sha256=
|
4
|
+
fosslight_dependency/_package_manager.py,sha256=eT-iszkY6iIyk2AOLDLM5F_PwFfku6cQdmmmTILJu9g,13709
|
5
5
|
fosslight_dependency/constant.py,sha256=1mJGu1SYyxVKo0W_pCIt-ANp52E_I5ovXFvpl2OMmjU,1039
|
6
6
|
fosslight_dependency/run_dependency_scanner.py,sha256=9fktktCcY5Po3Hqxdh04Q8U-SbRNsu50WAPjQSrjZ3o,12795
|
7
7
|
fosslight_dependency/LICENSES/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
@@ -9,7 +9,7 @@ fosslight_dependency/LICENSES/LicenseRef-3rd_party_licenses.txt,sha256=EcsFt7aE1
|
|
9
9
|
fosslight_dependency/package_manager/Android.py,sha256=lPL-B-qIr4Bg1Z-bT6hSwzYF0IqW3J32At8AJNg8P_w,3015
|
10
10
|
fosslight_dependency/package_manager/Carthage.py,sha256=OZL0ssKvN6pze0VohZ-kMeM-g-V7f5VqumpEh3o3t-U,6106
|
11
11
|
fosslight_dependency/package_manager/Cocoapods.py,sha256=X6UYX0-Tdfy_hkM0l5M54WHbhZNLLpFDzrGxeBjTmcY,8450
|
12
|
-
fosslight_dependency/package_manager/Go.py,sha256=
|
12
|
+
fosslight_dependency/package_manager/Go.py,sha256=EHTm__4ToZuR8ZoL1qzQxaT0OLcdrOv4F3d-yudaDE0,6373
|
13
13
|
fosslight_dependency/package_manager/Gradle.py,sha256=_gZjdmNDXdUEumVwwesbaCeJI5T90xzkwZy1ACFHeR8,4182
|
14
14
|
fosslight_dependency/package_manager/Helm.py,sha256=FjzQilY3GJyX8thwMGY_Rr12kw-dbehxVk6jIJNb2-M,4024
|
15
15
|
fosslight_dependency/package_manager/Maven.py,sha256=VlIc785CrFN3RBXHy80JSx2J5AlrbXhg5cquZA-qoLw,10261
|
@@ -18,17 +18,17 @@ fosslight_dependency/package_manager/Nuget.py,sha256=1YGkGktShw6xj7NGvgL763jWsnN
|
|
18
18
|
fosslight_dependency/package_manager/Pub.py,sha256=u2Wsm8raxc8fYEchyUpSpiKi-1x8seE4f0zJHD8BrMI,8964
|
19
19
|
fosslight_dependency/package_manager/Pypi.py,sha256=QakFlbGrb3oOXwRj498x5k2GFS1SgNeMpgMwUpBcwWU,15698
|
20
20
|
fosslight_dependency/package_manager/Swift.py,sha256=9J-LDCn0_zDBuScUeCgZIq0BQcx4n_1fhshciF9byNE,6590
|
21
|
-
fosslight_dependency/package_manager/Unity.py,sha256=
|
21
|
+
fosslight_dependency/package_manager/Unity.py,sha256=vGWtAHNtSkU8PxqKhoJNFFcUmNM2NJGRLwBmzeA21Sg,4353
|
22
22
|
fosslight_dependency/package_manager/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
23
23
|
fosslight_dependency/third_party/askalono/askalono.exe,sha256=NyngElHbrg3zLFRVwn6fPDZE_EDAEb1N8tiwWoCm4pQ,4743680
|
24
24
|
fosslight_dependency/third_party/askalono/askalono_macos,sha256=cYSNXhAQpkdd8lkgnY5skNeDmU_8DIuP84eFi0OXKkE,5589868
|
25
25
|
fosslight_dependency/third_party/nomos/nomossa,sha256=oFF9I-fhug6AVNyFnWeVXwDRin6NWSvk1g7mHBotB3Q,866408
|
26
|
-
fosslight_dependency-3.14.
|
27
|
-
fosslight_dependency-3.14.
|
28
|
-
fosslight_dependency-3.14.
|
29
|
-
fosslight_dependency-3.14.
|
30
|
-
fosslight_dependency-3.14.
|
31
|
-
fosslight_dependency-3.14.
|
32
|
-
fosslight_dependency-3.14.
|
33
|
-
fosslight_dependency-3.14.
|
34
|
-
fosslight_dependency-3.14.
|
26
|
+
fosslight_dependency-3.14.3.dist-info/Apache-2.0.txt,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
27
|
+
fosslight_dependency-3.14.3.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
28
|
+
fosslight_dependency-3.14.3.dist-info/LicenseRef-3rd_party_licenses.txt,sha256=EcsFt7aE1rp3OXAdJgmXayfOZdpRdBMcmRnyoqWMCsw,95687
|
29
|
+
fosslight_dependency-3.14.3.dist-info/METADATA,sha256=xo9IpW1T1z6aGRhlilBbM4IBG1OGNjeCs85fQyvEWRg,4799
|
30
|
+
fosslight_dependency-3.14.3.dist-info/MIT.txt,sha256=9cx4CbArgByWvkoEZNqpzbpJgA9TUe2D62rMocQpgfs,1082
|
31
|
+
fosslight_dependency-3.14.3.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
32
|
+
fosslight_dependency-3.14.3.dist-info/entry_points.txt,sha256=e1QZbnCrQvfbwe9L6PxXnkRZMhl-PSo0QyUes0dGjU8,91
|
33
|
+
fosslight_dependency-3.14.3.dist-info/top_level.txt,sha256=Jc0V7VcVCH0TEM8ksb8dwroTYz4AmRaQnlr3FB71Hcs,21
|
34
|
+
fosslight_dependency-3.14.3.dist-info/RECORD,,
|
{fosslight_dependency-3.14.2.dist-info → fosslight_dependency-3.14.3.dist-info}/Apache-2.0.txt
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{fosslight_dependency-3.14.2.dist-info → fosslight_dependency-3.14.3.dist-info}/entry_points.txt
RENAMED
File without changes
|
{fosslight_dependency-3.14.2.dist-info → fosslight_dependency-3.14.3.dist-info}/top_level.txt
RENAMED
File without changes
|