Skip to content

[build system] add --all-repositories flag #59770

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

Merged
merged 1 commit into from
Jun 29, 2022
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
13 changes: 11 additions & 2 deletions utils/update_checkout/update_checkout/update_checkout.py
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,10 @@ def full_target_name(repository, target):
raise RuntimeError('Cannot determine if %s is a branch or a tag' % target)


def skip_list_for_platform(config):
def skip_list_for_platform(config, all_repos):
if all_repos:
return [] # Do not skip any platform-specific repositories

# If there is a platforms key only include the repo if the
# plaform is in the list
skip_list = []
Expand Down Expand Up @@ -504,6 +507,11 @@ def main():
help="Skip the specified repository",
dest='skip_repository_list',
action="append")
parser.add_argument(
"--all-repositories",
help="""Includes repositories not required for current platform.
This will not override '--skip-repositories'""",
action='store_true')
parser.add_argument(
"--scheme",
help='Use branches from the specified branch-scheme. A "branch-scheme"'
Expand Down Expand Up @@ -578,6 +586,7 @@ def main():
skip_tags = args.skip_tags
scheme = args.scheme
github_comment = args.github_comment
all_repos = args.all_repositories

with open(args.config) as f:
config = json.load(f)
Expand Down Expand Up @@ -606,7 +615,7 @@ def main():
if scheme is None:
scheme = config['default-branch-scheme']

skip_repo_list = skip_list_for_platform(config)
skip_repo_list = skip_list_for_platform(config, all_repos)
skip_repo_list.extend(args.skip_repository_list)
clone_results = obtain_all_additional_swift_sources(args, config,
clone_with_ssh,
Expand Down