Skip to content

[6.3] Error if multiple Swift SDKs match --swift-sdk <selector> and fix searching for SDKs when a --triple is specified alongside#9998

Open
finagolfin wants to merge 3 commits into
swiftlang:release/6.3from
finagolfin:sdk-triple
Open

[6.3] Error if multiple Swift SDKs match --swift-sdk <selector> and fix searching for SDKs when a --triple is specified alongside#9998
finagolfin wants to merge 3 commits into
swiftlang:release/6.3from
finagolfin:sdk-triple

Conversation

@finagolfin
Copy link
Copy Markdown
Member

@finagolfin finagolfin commented Apr 28, 2026

@finagolfin finagolfin requested a review from a team as a code owner April 28, 2026 15:57
@finagolfin
Copy link
Copy Markdown
Member Author

@swift-ci test

@finagolfin
Copy link
Copy Markdown
Member Author

I would like to get #9229 and #9036 in next, will submit those to 6.3 separately when done in trunk.

@owenv
Copy link
Copy Markdown
Contributor

owenv commented Apr 28, 2026

Thanks - Given Mishal's announcement in https://forums.swift.org/t/development-open-for-swift-6-3-1-for-linux-and-windows/85715/8 about the very short timeframe for the 6.3.2 release, in my opinion this is a little too risky to include despite the benefits of getting the improved behavior out to users faster, as preferably we'd have more time to live on the change before it shipped to ensure there's no unexpected emergent behavior.

@finagolfin
Copy link
Copy Markdown
Member Author

These bugfix pulls are small and pretty easy to examine to see what they do, plus they only affect SDK search. I think the risk is pretty low, and the fact that all CI just passed suggests there is no unexpected change.

@finagolfin finagolfin closed this Apr 30, 2026
@finagolfin finagolfin deleted the sdk-triple branch April 30, 2026 09:53
@finagolfin finagolfin reopened this Apr 30, 2026
@finagolfin
Copy link
Copy Markdown
Member Author

Updated to pull in the one-line library search path fix from #10008 also.

This code has been carefully reviewed and is locally contained to only SDK search. Given how bad the devex is with choosing between multiple SDK bundles installed right now, I think we should get these bugfixes in for 6.3.2.

If it's a matter of accountability, I will fix any issues that come up from this change, which is easy for me to say, as I expect none. 😉

@finagolfin
Copy link
Copy Markdown
Member Author

@swift-ci test

@finagolfin
Copy link
Copy Markdown
Member Author

@swift-ci test windows

@shahmishal
Copy link
Copy Markdown
Member

This change won’t be included in the Swift 6.3.2 release. If it’s important, please contact the release-mangers on forums.swift.org as soon as possible.

@finagolfin
Copy link
Copy Markdown
Member Author

@shahmishal, not important, the SwiftPM managers don't want this in 6.3.2, so I will wait.

@finagolfin
Copy link
Copy Markdown
Member Author

@swift-ci test windows

@finagolfin
Copy link
Copy Markdown
Member Author

finagolfin commented May 16, 2026

@owenv, can we get this in, now that 6.3.2 was tagged? People are still hitting it with the release SDKs, eg #10034.

@finagolfin
Copy link
Copy Markdown
Member Author

@swift-ci test self hosted windows

@finagolfin
Copy link
Copy Markdown
Member Author

@swift-ci test self hosted windows

…SDK name

Extend `selectBundle()` to use the existing `selectSwiftSDK(id:hostTriple:targetTriple)`
overload, plus fix the latter to check the full triple string, which affects
`swift sdk configure` also.

Fixes swiftlang#7973 and swiftlang#9220
        ### Motivation:

        SDK search assumed you knew what you're doing and would pick any SDK that matched, time to make that more strict.

        ### Modifications:

        Collect all matches instead, then spit out different errors if there were multiple matches.

        ### Result:

        Emphasize to SDK users that they need to have their installed SDKs not contain the same target triples, when selecting with a triple alone.
@finagolfin
Copy link
Copy Markdown
Member Author

I had to rebase to get the CI to apply others' merged testing fixes from the 6.3 branch.

@swift-ci test

@finagolfin
Copy link
Copy Markdown
Member Author

@swift-ci smoke test

1 similar comment
@finagolfin
Copy link
Copy Markdown
Member Author

@swift-ci smoke test

@finagolfin
Copy link
Copy Markdown
Member Author

@swift-ci test

@finagolfin
Copy link
Copy Markdown
Member Author

@swift-ci test windows

@finagolfin
Copy link
Copy Markdown
Member Author

Passed all CI, just waiting on review.

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