Fix C++ interop CI script to work with changes in SwiftPM#3510
Merged
simonjbeaumont merged 4 commits intomainfrom Feb 11, 2026
Merged
Fix C++ interop CI script to work with changes in SwiftPM#3510simonjbeaumont merged 4 commits intomainfrom
simonjbeaumont merged 4 commits intomainfrom
Conversation
0a48821 to
cf91bf3
Compare
cf91bf3 to
8e1868f
Compare
Contributor
Author
|
OK, this is working now, for all versions (link): Once this is approved I'll revert the TEMPORARY COMMIT that uses the branch-based script before merging. |
This reverts commit 8e1868f.
Lukasa
approved these changes
Feb 11, 2026
Contributor
Author
|
Now that this is mergeable it will use the main-branch for the script so will be failing again. We can see the commit in the PR history that shows everything is working, so once all the other CIs are passing I will disable auto-merge and merge over this one failing CI. This will restore CI functionality for future PRs. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation:
SwiftPM behaviour has changed in recent Swift nightlies.
In most recent released version of Swift, SwiftPM will use the parent directory name for the source and test target directory too, even when it contains a period:
Note in the above how it replaces the
.with a_in the source files, but the directories retain the..In the recent nightly-main, SwiftPM has also started replacing
.with_in the target directory names:Probably this swiftlang/swift-package-manager#9252.
This breaks our CI automation, only on nightly-main, because we run
swift package initin a directory created bymktemp -d, which, by default, follows the patterntmp.XXXXXXX.Modifications:
Create temporary directory for Swift package using explicit pattern containing no periods.
Result:
C++ interop CI should now work again on nightly-main Swift, and continue to work on all supported Swift versions.