Skip to content

Add --use-submodules to update_checkout #80837

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 2 commits into from
Apr 17, 2025
Merged

Add --use-submodules to update_checkout #80837

merged 2 commits into from
Apr 17, 2025

Conversation

MaxDesiatov
Copy link
Contributor

@MaxDesiatov MaxDesiatov commented Apr 15, 2025

Not all repositories in update-checkout-config.json are tagged. For contributors that would like to achieve reproducible builds, it's useful to track exact state of checkouts with submodules. This also enables bisection scripts running across multiple repositories locally.

New --use-submodules flag is added to update-checkout, which uses git submodule add instead of git clone when checking out new repositories. Contributors can then track changes to submodules in their own top-level repository if they wish to do so.

The flag is optional and is not enabled by default.

Not all repositories in `update-checkout-config.json` are tagged. For contributors that would like to achieve reproducible builds, it's useful to be able to track exact state of checkouts with submodules. New `--use-submodules` flag is added to `update-checkout`, which uses `git submodule add` instead of `git clone` when checking out new repositories.
@MaxDesiatov MaxDesiatov added the update-checkout Area → utils: the `update-checkout` script label Apr 15, 2025
@MaxDesiatov
Copy link
Contributor Author

@swift-ci smoke test

@MaxDesiatov
Copy link
Contributor Author

@swift-ci smoke test

@grynspan
Copy link
Contributor

@swift-ci test Linux platform

@MaxDesiatov MaxDesiatov merged commit 23138e5 into main Apr 17, 2025
4 checks passed
@MaxDesiatov MaxDesiatov deleted the maxd/use-submodules branch April 17, 2025 16:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
update-checkout Area → utils: the `update-checkout` script
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants