Skip to content

Conversation

@charles-zablit
Copy link
Contributor

This patch refactors the shell invocations in update-checkout by removing the shell module dependency. The shell module is used by various modules, most notably the build-script. Extracting the methods allows us a better control over the Exception we throw. Furthermore, shell.run was only used in update-checkout.

This refactor also simplifies the use of subprocess, which should help us fix some of the inconsistencies we are seeing on Windows.

@charles-zablit
Copy link
Contributor Author

@swift-ci please smoke test

@charles-zablit charles-zablit self-assigned this Oct 22, 2025
@charles-zablit charles-zablit force-pushed the charles-zablit/update-checkout/refactor-shell-invocations branch from 9525875 to f094494 Compare October 22, 2025 17:56
@charles-zablit
Copy link
Contributor Author

@swift-ci please smoke test

@charles-zablit
Copy link
Contributor Author

@swift-ci please test windows

Copy link
Contributor

@adrian-prantl adrian-prantl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As far as I can tell this preserves the old behavior.

@charles-zablit charles-zablit merged commit a687605 into swiftlang:main Oct 23, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants