Skip to content

Reapply "Include Swift Build support in second stage bootstrap builds" #8373

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
Mar 17, 2025

Conversation

owenv
Copy link
Contributor

@owenv owenv commented Mar 16, 2025

This reverts commit 6a2e45f.

  • Stop setting SWIFTPM_NO_SWBUILD_DEPENDENCY in the bootstrap script
  • Copy resource bundles required by Swift Build into the toolchain when installing

There is one additional fix to the bootstrap script to allow overwriting directories when installing, to fix the incremental buildbot CI configuration.

@@ -587,7 +592,7 @@ def install_file(args, src, destination, destination_is_directory=True, ignored_

logging.info("Installing %s to %s", src, dest)
if os.path.isdir(src):
shutil.copytree(src, dest, ignore=shutil.ignore_patterns(*ignored_patterns))
shutil.copytree(src, dest, ignore=shutil.ignore_patterns(*ignored_patterns), dirs_exist_ok=True)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is the one change from the original PR, to ensure that the resource bundles we install are replaced instead of erroring out if the builder contains content from another build.

@owenv
Copy link
Contributor Author

owenv commented Mar 16, 2025

@swift-ci test

@owenv owenv force-pushed the owenv/reapply-swift-build-install branch from 0ea048b to e49d1da Compare March 17, 2025 05:02
@owenv
Copy link
Contributor Author

owenv commented Mar 17, 2025

@swift-ci please test

@owenv
Copy link
Contributor Author

owenv commented Mar 17, 2025

@swift-ci please test Windows

This reverts commit 6a2e45f.

- Stop setting SWIFTPM_NO_SWBUILD_DEPENDENCY in the bootstrap script
- Copy resource bundles required by Swift Build into the toolchain when installing
@owenv owenv force-pushed the owenv/reapply-swift-build-install branch from e49d1da to fb53b3a Compare March 17, 2025 16:55
@owenv
Copy link
Contributor Author

owenv commented Mar 17, 2025

@swift-ci test

@owenv
Copy link
Contributor Author

owenv commented Mar 17, 2025

@swift-ci test Windows

@owenv owenv merged commit 0193d5f into swiftlang:main Mar 17, 2025
5 checks passed
bkhouri added a commit to bkhouri/swift-package-manager that referenced this pull request Apr 3, 2025
PR swiftlang#8373 (commit ID: 0193d5f) updated a shutil.copytree(...) command
to pass in the `dirs_exists_ok=True` argument.  However, Python added
support for the `dirs_exists_ok` argument to `shutil.copytree` in 3.8.

Update the function call to inspect the python version, and only add
the argument if the script is running in a Python version equal, or
higher than 3.8.

rdar://147297864
bkhouri added a commit to bkhouri/swift-package-manager that referenced this pull request Apr 3, 2025
PR swiftlang#8373 (commit ID: 0193d5f) updated a shutil.copytree(...) command
to pass in the `dirs_exists_ok=True` argument.  However, Python added
support for the `dirs_exists_ok` argument to `shutil.copytree` in 3.8.

Update the function call to inspect the python version, and only add
the argument if the script is running in a Python version equal, or
higher than 3.8.

rdar://147297864
bkhouri added a commit that referenced this pull request Apr 4, 2025
PR #8373 (commit ID: 0193d5f) updated a `shutil.copytree(...)` command
to pass in the `dirs_exists_ok=True` argument. However, Python added
support for the `dirs_exists_ok` argument to `shutil.copytree` in 3.8.

Update the function call to inspect the python version, and only add the
argument if the script is running in a Python version equal, or higher
than 3.8.

rdar://147297864
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.

3 participants