Skip to content

[windows] Consolidate dependency infos in build.ps1 (NFC) #77945

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

Conversation

weliveindetail
Copy link
Member

The recent move away from host Python, additional modules and the upcoming LLDB test dependencies are adding 3rd-party dependencies to the build script and their URLs/hashes/version kept spreading throughout the code. This patch is an attempt to consolidate the required data in a $Components map that is indexed with an abstract name. Each item has the fields URL and Hash but isn't limited to that. The PinnedSwift items for example have an extra Version field.

Major refactors in this patch are:

  1. DownloadAndVerify was changed. It takes an abstract component name now instead of URL/Hash.
  2. Ensure-PythonModule was added. It takes a Python module name and checks/installs that.
  3. Ensure-PythonModules was dropped
  4. $PinnedBuild/SHA256/Version remain bare parameter values and don't get overwritten anymore.
  5. $PinnedSwift contains the component name that selects which pinned toolchain is used.

@weliveindetail
Copy link
Member Author

Once LLDB test infrastructure landed, we can add weliveindetail@buildps1-consolidate-deps-infos-with-lldb-testing

@weliveindetail
Copy link
Member Author

Closing this as the above PR contains these patches now.

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.

1 participant