Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add required param to repo_setup.py #988

Merged
merged 1 commit into from
Nov 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions tools/repo_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -449,14 +449,19 @@ def get_latest_sdk_commit() -> str:
["git", "config", "--global", "advice.detachedHead", "false"]
)

filtered_submodules = []
if repo_list:
filtered_submodules = []
for repo in repo_list:
for submodule in submodules:
if repo.lower() in submodule["path"].lower():
filtered_submodules.append(submodule)

submodules = filtered_submodules
else:
for submodule in submodules:
required = submodule.get("required", True)
if required:
filtered_submodules.append(submodule)

submodules = filtered_submodules

# Create a pool of workers
with concurrent.futures.ProcessPoolExecutor() as executor:
Expand Down