Skip to content

Commit 012283c

Browse files
authored
Define custom list of deps per branch (#209)
1 parent 996ec07 commit 012283c

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

dep_checker/dependencies.py

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ def get_cpe(self, repo_path: Path) -> Optional[str]:
3737
"CVE-2019-0190", # openssl, can be only triggered in combination with Apache HTTP Server version 2.4.37
3838
]
3939

40+
# Define common dependencies used in all branches
4041
common_dependencies: list[str] = [
4142
"ada",
4243
"acorn",
@@ -51,17 +52,23 @@ def get_cpe(self, repo_path: Path) -> Optional[str]:
5152
"npm",
5253
"OpenSSL",
5354
"libuv",
54-
"simdutf",
5555
"uvwasi",
5656
"undici",
5757
"zlib",
5858
]
5959

60+
# Define branch-specific dependencies
61+
main_specific = ["simdutf"]
62+
v22_specific = ["simdutf"]
63+
v20_specific = ["simdutf"]
64+
65+
# Combine common dependencies with branch-specific ones
6066
dependencies_per_branch: dict[str, list[str]] = {
61-
"main": common_dependencies,
62-
"v24.x": common_dependencies,
63-
"v22.x": common_dependencies,
64-
"v20.x": common_dependencies,
67+
"main": common_dependencies, # No simdutf in main
68+
"v24.x": common_dependencies, # No simdutf in v24.x
69+
"v23.x": common_dependencies, # No simdutf in v23.x
70+
"v22.x": common_dependencies + v22_specific,
71+
"v20.x": common_dependencies + v20_specific,
6572
}
6673

6774

0 commit comments

Comments
 (0)